I'm working on web application project and i would lik to use django-crispy-forms as style for my login etc..
i have created clean virtual environment for my project and installed what i need for the project until now ..!
(env)amr#T510:~/viteco$ python --version
Python 3.4.0
(env)amr#T510:~/viteco$ pip list
Django (1.8.4)
django-registration-redux (1.2)
pip (7.1.2)
psycopg2 (2.6.1)
setuptools (18.2)
wheel (0.24.0)
(env)amr#T510:~/viteco$ pip freeze
Django==1.8.4
django-registration-redux==1.2
psycopg2==2.6.1
wheel==0.24.0
(env)amr#T510:~/viteco$
now i would like to install django-crispy-forms but pip can not help me .!
(env)amr#T510:~/viteco$ pip install --upgrade django-crispy-forms
Collecting django-crispy-forms
Using cached django-crispy-forms-1.5.2.tar.gz
setuptools must be installed to install from a source distribution
(env)amr#T510:~/viteco$
setuptools must be installed to install from a source distribution
Looks like you need setuptools.
Try this question for how to install setuptools
Related
I created a virtual environment for my project and I'm trying to install torch via pip.
pip install torch===1.5.1 torchvision===0.6.1 -f https://download.pytorch.org/whl/torch_stable.html
This gives me the error -
ERROR: Could not find a version that satisfies the requirement torch===1.5.1 (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch===1.5.1
Some solutions recommend the use of conda, is it necessary? Can I not do it through just pip
You can try to install directly from the wheels files:
pip install https://download.pytorch.org/whl/cu102/torch-1.5.1-cp36-cp36m-win_amd64.whl
pip install https://download.pytorch.org/whl/cu102/torchvision-0.6.1-cp36-cp36m-win_amd64.whl
Having trouble installing any packages or upgrading through PIP install. basically i want to install packages for Data Science. Not able to use CONDA either.
Error I got-
ERROR: Could not find a version that satisfies the requirement menuinst (from conda) (from versions: none)
ERROR: No matching distribution found for menuinst (from conda)
WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I tried to do pip install --upgrade pip in my Mac, but it hanged at Uninstalling pip-19.0.1:.
Could anyone tell me what I should do?
Ties-MBP:10studio-4 chengtie$ pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 1.1MB/s
Installing collected packages: pip
Found existing installation: pip 19.0.1
Uninstalling pip-19.0.1:
You should do it with an administrator account. Try "sudo pip install --upgrade pip".
Ceph teuthology installation fails with following error on Ubuntu 14.04, kernel 4.4.0-51-generic:
ImportError: <module 'setuptools.dist' from '/usr/lib/python2.7/dist-packages/setuptools/dist.pyc'> has no 'check_specifier' attribute
It was due to older setuptools version. I updated setuptools as follows:
sudo pip install setuptools --upgrade
It installed setuptools-31.0.0 and that worked.
For python 3 and later 3.x, use pip3
sudo pip3 install setuptools --upgrade
No need to use sudo for a virtual environment or in admin console of windows,so use simply
pip3 install setuptools --upgrade
When I run pip install -U pip it doesn't install the newer version.
drahcir#Altair:~/dev$ pip --version
pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
drahcir#Altair:~/dev$ pip install -U pip
Downloading/unpacking pip
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: pip
Successfully installed pip
Cleaning up...
drahcir#Altair:~/dev$ pip --version
pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
Even though it says it downloaded pip 8.1.2, the pip version still says 1.5.6
How can I get pip to upgrade to 8.1.2?