问题
I have created a venv which I call PyRepo
from a Miniconda installation locally. So far it has been working well as I was able to install third party packages from my venv
using pip install <PackageName>
no problems. However, I bumped into this one package blpapi
that will install from conda (in the same machine):
(base) C:\Programs\Miniconda3_64>pip install blpapi
Looking in indexes: https://nexus-tp.xxx.net/repository/public-pypi/simple
Requirement already satisfied: blpapi in c:\programs\miniconda3_64\lib\site-packages (3.14.0)
but when I attempt to do the same from the PyRepo
venv then it produces the following error:
(PyRepo) c:\Xxx\Dev\PyRepo>pip install blpapi
Looking in indexes: https://nexus-tp.xxx.net/repository/public-pypi/simple
ERROR: Could not find a version that satisfies the requirement blpapi (from versions: none)
ERROR: No matching distribution found for blpapi
I have tried many different ways but they all fail with the same error:
pip install --user blpapi
python3 -m pip install blpapi
python3 -m pip install --pre --upgrade blpapi=3.14.0
pip install --isolated blpapi
I'm quite puzzled as what goes with this blpapi
package as all other packages install fine in my venv. Also note that the installation on the conda environment uses the same nexus repository and it works while it doesn't in the venv. How can I fix this? are there any workarounds? e.g. copying the installation from the local conda to my venv PyRepo
? How to manually copy the installation from conda to my venv safely or trigger a transfer install?
来源:https://stackoverflow.com/questions/61587542/why-am-i-unable-to-install-package-into-a-venv-while-it-works-using-conda-in-the