Getting the attached error when am trying to install Django.
throws up the following error
"could not find the version that satisfies the requirement install"
cd c:\Users\viku.jain\Downloads
python get-pip.py
pip install django==1.9
or you can install django using Git
Make sure that you have Git installed and that you can run its commands from a shell
git clone git://github.com/django/django.git
pip install -e django/
the you can start your work by django-admin utility command
Related
I am trying to get the requirements for my code into a local package following this guide:
https://docs.aws.amazon.com/lambda/latest/dg/python-package.html
In step one when I try to run a similar command pip install --target ./package -r requirements.txt it fails with the following error "ERROR: Can not combine '--user' and '--target'". I have no idea why it is complaining.
I am using PyCharm, with a conda environment, and I am running the commands in the PyCharm Terminal.
I found this question/answer: PIP Install: Cannot combine --user and --target
but I am not using the Microsoft store version of python. My PyCharm project is configured to use the Anaconda python interpreter.
Update: I was able to get the command to succeed by installing pip inside of the conda environment I am using but I am still not sure why it was an issue before. If anyone has any details it would be appreciated.
Let me know what details are needed, thanks.
If you are trying to install them all in the same directory try:
pip install -r requirements.txt -t ./package
I have been following this tutorial (https://tutorial.djangogirls.org/en/django_installation/) to learn some python but I have become stuck at the 'Django installation' step. I have managed to create a virtual environment and the .txt file but trying
(myvenv) (base) PS C:\users\JD\djangogirls> pip install -r requirements.txt
I get the error 'could not find version that satisfies requirement'and'no matching distribution found'. This error occurs when I have entered versions 2.2.4 & 3.0.5 of Django into the .txt file.
Have also just tried 'pip install django' and have come across the same errors.
Have tried in the windows command prompt but i get an error stating pip is not recognized as an internal or external command.
I have python 3.7.6 installed.
Any help is very much appreciated
After enabling your virtualenv follow to following code
pip install django==2.2.2
Add django==2.2.2 in requirements.txt
pip install -r reqirements.txt
After cloning a Django application, I went to install the virtual environment in terminal.
I entered the folder and typed: pip install -r requirements.txt
but got the error: -bash: pip: command not found
It seems that you are missing the pip itself which you can install from packaging repository depending on your OS or download (manually or with wget) the and install it using python. This will automatically associate your python version with required pip version. See following commands:
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
I am trying to install requests from my requirements.txt file on Azure.
When I run:
python.exe -m pip install --upgrade -r requirements.txt
I get the error:
could not create 'D:\Python34\Lib\site-packages\requests': Access is denied
In my Azure webapp I have installed the following python extension:
Python 3.6.1 x64 3.6.1.3
So I am presuming that I need the 'requests' package to install to here:
D:\home\python361x64\Lib\site-packages\ instead of 'D:\Python34\Lib\site-packages\
Any ideas how I can fix this ?
Got it working by creating a run.cmd file & then specifying the python path to run python.exe from eg. D:\home\python361x64\python.exe get_stats.py – Pete Stilgoe yesterday
And running python.exe -m pip install --upgrade -r requirements.txt from the version path eg D:\home\python361x64\python.exe -m pip install --upgrade -r requirements.txt – Pete Stilgoe yesterday
I have installed pip and setuptools installed on my Mac with pip. While I am installing Ipython with commands: sudo install ipython,Errors following:Link. I have tried these commands: sudo -H pip install ipython --ignore-installed setuptools-1.1.6
,it also came out errors: Could not find a version that satisfies the requirement setuptools-1.1.6 (from versions: ) No matching distribution found for setuptools-1.1.6.
I have googled similar problems,but haven't solved it. Thanks for help.
I recommend using virtualenv. You can install it and then inside the project folder run virtualenv .. This will create a few new folders. Now you can run ./bin/pip install ipython which will install ipython only on that folder. Can you do that and let us know if it worked? You can run all python apps using ./bin/python app.py or by adding #!bin/python.