I have python 2.7 version installed.When i check for pip version it says below
pip --version
9.3
When i try to update pip using below command
python -m pip install --upgrade pip
It says pypi.python.org timed out.....Requirement already up to date
Now i want to install boto3 for that i am using below command
pip install boto3
But it says
"retry connection timeout ....
"Could not find a version that satisfies the requirement boto3 (from
versions: )"
Any idea why i am not able to install boto3?.Infact i am not able to install any other package like bs4 etc
Related
I am trying to install HttpLibrary.HTTP Library for using JSON assertion keywords like JSON Value should equal. However when I try to install Library using
pip install --upgrade robotframework-httplibrary
I get:
Could not find a version that satisfies the requirement
robotframework-httplibrary (from versions:) No matching distribution
found for robotframework-httplibrary. My pip version is 10.0.1.
Run this command instead if that does not work upgrade php version
pip install robotframework-httplibrary
To upgrade pip
pip install --upgrade pip
alternatively if that does not work you can download the zip folder from here https://github.com/peritus/robotframework-httplibrary and then run the setup.py
This needs to be ran from the command prompt
C:\Python27\python.exe C:\Users\Username\Desktop\setup.py
Alternatively you could try to install it using powershell with the following command
PS> pip install --isolated robotframework-httplibrary
I'm trying to install Beautiful Soup 4.6.0 on my mac, but I keep on getting the error message below:
I have tried to install it as easy install and pip install beautifulsoup, but still keep on getting the same error message.
The terminal description is below:
in terminal, typepython -m pip install beautifulsoup
if that doesn't work, try updating pip
python -m pip install --upgrade pip
then retry the first command
On a AWS machine, I updated pip to version 9.0.1 with
sudo -H pip install --upgrade pip
and then updated setuptools from 12.2 to 36.2.2 doing :
pip install -U setuptools
But now I can't use easy_install anymore, it says
-bash: /usr/bin/easy_install: No such file or directory
I saw that there is only easy_install-3.4 in /usr/bin, how can I retrieve easy_install?
My problem is that I wanted to create a .egg file and apparently with the old version of setuptools it was not created correctly so when I was installing it via easy_install I couldn't import the package in Python ('no module named xxx').
I am using Python 2.7
Thanks
I am using macOS Sierra 10.12 and after I upgraded my OS I can no longer install packages for python 3 using pip. Before I used to use pip for python2 and pip3 for python 3 as I have both versions of Python. But now I can no longer use pip to install libraries for python2.
Can anyone help me how can I change my default pip installer to python2? So that I can just use pip install in order to install for python 2.
For your information - when I only type python on terminal it says my default is python 2.7.
on running
which pip
I got /usr/local/bin/pip
Which meant it was pointing to pip2
To change default pip to pip3, run
sudo ln -s /usr/local/bin/pip3 /usr/local/bin/pip
install pip for Python2.7 with easy_install:
sudo easy_install-2.7 pip
now you can use pip for the same specific version of Python:
sudo pip2.7 install BeautifulSoup
I am trying to upgrade certain packages installed at the global(root) level at my user level. Whenever i try to upgrade the package with pip, it simply re-installs the already existing version at the user level.
For example,
$pip install boto --user --upgrade
Collecting boto
Using cached boto-2.42.0-py2.py3-none-any.whl
Installing collected packages: boto
Successfully installed boto-2.9.5
pip downloads boto-2.42 but installs 2.9.5.
I am not sure why this is happening. Any help would be appreciated?
I am using pip 8.1.2
reply to #Evert
The output from pip for pip install boto --user --ignore-installed is
Collecting boto
Using cached boto-2.42.0-py2.py3-none-any.whl
Installing collected packages: boto
Successfully installed boto-2.9.5
Note, pip collects the most recent package but falls back to the old package when installing. I cant seem to understand why this happens. The above works correctly in my other machines but not this. I even tried re-installing pip but it wont work
pip install boto --user --ignore-installed
Try to force a reinstall of the desired package:
pip install --user -U --force-reinstall boto