In a virtual env, after installing numpy without problems i run
pip3 install pandas
which returns:
EDIT:
Collecting pandas
Using cached https://files.pythonhosted.org/packages/08/01/803834bc8a4e708aedebb133095a88a4dad9f45bbaf5ad777d2bea543c7e/pandas-0.22.0.tar.gz
Installing build dependencies ... error
Complete output from command /home/bonzay/Desktop/Final_Project/venv/bin/python3.4 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4pcvmc12 https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl#sha256=80044e51ec5bbf6c894ba0bc48d26a8c20a9ba629f4ca19ea26ecfcf87685f5f https://files.pythonhosted.org/packages/8c/10/79282747f9169f21c053c562a0baa21815a8c7879be97abd930dbcf862e8/setuptools-39.1.0-py2.py3-none-any.whl#sha256=0cb8b8625bfdcc2d43ea4b9cdba0b39b2b7befc04f3088897031082aa16ce186 https://files.pythonhosted.org/packages/70/25/1e1521e6ce2cf78ff4a8b06fbc2cd513ce004ec337000eddfe016fdf3fc6/Cython-0.28.2-cp34-cp34m-manylinux1_x86_64.whl#sha256=85f7432776870d65639fed00f951a3c05ef1e534bc72a73cd1200d79b9a7d7d0 https://files.pythonhosted.org/packages/fc/1b/a1717502572587c724858862fd9b98a66105f3a3443225bda9a1bd16ee14/numpy-1.9.3-cp34-cp34m-manylinux1_x86_64.whl#sha256=bff36563f9d6a06a81ae232f49d2946c84c05e391a7dff057496033c79507860 https://files.pythonhosted.org/packages/02/64/c6c1c24ff4dbcd789fcfdb782e343ac23c074f6b8b03e818ff60eb0f937f/numpy-1.12.1-cp34-cp34m-manylinux1_x86_64.whl#sha256=4eac5f2f624c5e7eecbdb51395ff39a099c48cab607a158f16f288c6fe39a2b3 https://files.pythonhosted.org/packages/1b/ee/f65826b2880f67652c21326565b4c166c7cdb1019f84b82af65e625475cd/numpy-1.13.1-cp34-cp34m-manylinux1_x86_64.whl#sha256=838e48df3703c8747f355cd6386e0680b906a2f7b2bbd304e8a2d531692484ce:
Double requirement given: numpy==1.12.1 from https://files.pythonhosted.org/packages/02/64/c6c1c24ff4dbcd789fcfdb782e343ac23c074f6b8b03e818ff60eb0f937f/numpy-1.12.1-cp34-cp34m-manylinux1_x86_64.whl#sha256=4eac5f2f624c5e7eecbdb51395ff39a099c48cab607a158f16f288c6fe39a2b3 (already in numpy==1.9.3 from https://files.pythonhosted.org/packages/fc/1b/a1717502572587c724858862fd9b98a66105f3a3443225bda9a1bd16ee14/numpy-1.9.3-cp34-cp34m-manylinux1_x86_64.whl#sha256=bff36563f9d6a06a81ae232f49d2946c84c05e391a7dff057496033c79507860, name='numpy')
Both numpy and pandas are installed globally with no problems. I tried re installing numpy, upgrading pip3, re installing setup tools. Nothing worked as expected, as i don't even understand the error message.
I had the same issue! [Ubuntu 16, python 3.5] After creating my virtual environment using python3 -m venv .env, I could not install pandas in my .env virtual environment. This is how I fixed it:
The pip version of my virtualenv was pip-8.1.1. I ran the following command to upgrade it to pip-20.0.2:
pip install --upgrade pip
Then, ran pip install pandas to install pandas successfully within my virtual env!
Successfully installed numpy-1.18.1 pandas-0.24.2 python-dateutil-2.8.1 pytz-2019.3 six-1.14.0
found this which did the job for me:
Double requirement given when trying to use pip install pandas
Double requirement given when trying to use pip install pandas
pip3 install 'pandas<0.21'
Not sure what is your problem. You should post what all you have done from the very beginning. Have you activated your virtualenv?
If you haven't this is how you can do it:
virtualenv venv
venv/bin/activate
Related
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?
I like to use pip to download the source of Python packages, without installing them. To download e.g. SciPy 1.4.1 I would use
python3 -m pip download --no-binary=:all: scipy==1.4.1
This generally works, but for at least SciPy 1.4.1 and pip 20.0, 20.0.1 and 20.0.2 it does not.
The SciPy source is in fact downloaded, but due to an error in the "Installing build dependencies" step, the SciPy source is being cleaned up. (I don't really want this build step, but even supplying --no-deps doesn't get rid of it. It doesn't actually install anything though.)
What's changed with pip, and (more importantly) how do I fix it?
It works if I add the --no-use-pep517 option:
python3 -m pip download --no-binary=:all: --no-use-pep517 scipy==1.4.1
This also could be fixed with
pip install -U virtualenv pip
virtualenv .venv --seeder pip
source .venv/bin/activate
python3 -m pip download --no-binary=:all: scipy==1.4.1
I have found that running
pip install fbprophet --target=/tmp/foo --no-cache-dir
gives the following error: ImportError: No module named pystan
However if I remove either --target or --no-cache-dir options then it installs successfully. i.e. both of the following commands are successful:
pip install fbprophet --no-cache-dir
pip install fbprophet --target=/tmp/foo
Does anybody know why that's the case?
I'm sure the problem is neither in --target nor in --no-cache-dir. I tried both command in transient empty virtual environments (recreating a venv after every command) and got the error with pip install fbprophet --target=/tmp/foo.
I believe the problem is in fbprophet's setup.py: it imports pystan during build process without checking that it's available or installing it. I think it could be fixed by copying or moving pystan from requirements.txt to setup_requires.
I suspect you didn't get the problem because after pip install fbprophet --no-cache-dir you have pystan installed globally. Remove everything installed with the 1st command and retry the second one. Or try them in new empty virtual environments.
Send a pull request to fix the problem.
I also think you can install in 2 steps:
pip install --target=/tmp/foo --no-cache-dir pystan
PYTHONPATH=/tmp/foo pip install --target=/tmp/foo --no-cache-dir fbprophet
I have created a conda environment where I am installing all the stuff I need.
I already had installed the pandas library, but I need to upgrade it to the latest version.
However, when I try pip3 install --upgrade pandas I get the following error:
Found existing installation: pandas 0.15.2
Cannot uninstall 'pandas'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
I have tried sudo apt-get remove pandas, but this get me a message saying that the pandas package cannot be found.
In case is relevant, I am in Ubuntu 16.04 and using python 3.6.3
Though I'm unable to reproduce the error, you can try:
1) Reduce version
pip install --upgrade --force-reinstall pip==18.0
Try to re-install package
pip install xxx --disable-pip-version-check
At last, recover the latest version for pip
pip install --upgrade pip
2) pip install -I==18.0 -r requirements.txt
3) Try removing manually from 'site-packages'
These solutions were found here
I have recently configured python3 for other application and running on the same machine where python 2.7 was running.. I see python3 applications are working fine with command
python -m pip install package-name and
python3 manage.py runserver command
But I am facing trouble with my existing application and new application with following issue while installing package
You are using pip version 7.1.0, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting django-allauth==0.27.0
Could not find a version that satisfies the requirement django-allauth==0.27.0 (from versions: )
No matching distribution found for django-allauth==0.27.0
This is the command I used,
pip install django-allauth==0.27.0
Anybody know how to resolve it?
This is the command output,
pip 7.1.0 from /Users/overflow/.virtualenvs/ion/lib/python2.7/site-packages (python 2.7)
Try installing another version:
pip install django-allauth
Make sure you're using the version of pip that corresponds to the version of Python you are using:
pip --version
Alternatively, be explicit in which version you use:
python3 -m pip install django-allauth
or
python2 -m pip install django-allauth
try
pip install --upgrade pip
first
and then
pip install django-allauth==0.27.0
I'm little confused with you'r version problem, but you can choose you'r python vertion using py-2.x or py -3.x. For example:
py -3.6 -m pip install djangp-allauth==0.27.0
py -2.7 -m pip install djangp-allauth==0.27.0
I fixed it by uninstalling PIP in each project and then reinstalling it.. Might not be a good solutions, but this works.