Not working
root#49161b16e779:/# aws --version
aws-cli/1.11.121 Python/3.5.2 Linux/4.10.0-32-generic botocore/1.5.84
root#49161b16e779:/# aws s3 ls s3://my.bucket.path
'AWSHTTPSConnection' object has no attribute 'ssl_context'
Working fine
tada#tada-VirtualBox:~$ aws --version
aws-cli/1.11.13 Python/3.5.2 Linux/4.10.0-32-generic botocore/1.4.70
The above is a problem I'm getting lately, since somewhere between July 25 and Aug 3, 2017.
Docker is node:6.9.2. Also tried the 'ubuntu' image, same error.
I can't seem to find the error source. Anyone know how to solve it? Thanks.
This is caused by a bug in AWS CLI, noted at https://github.com/boto/botocore/issues/1258#issuecomment-321787841, that mades it incompatible with newer versions of Requests. If you install awscli with Pip, you won't see the bug, because the version that you get from Pip has an old, compatible version of Requests baked into it. But if you've installed AWS CLI with Apt (or perhaps some other package managers), you'll have got a version of AWS CLI that uses the system's Requests module, exposing you to this bug.
To fix, either:
Remove whatever version of the AWS CLI you've got installed and reinstall it with Pip. This probably means running apt remove awscli && pip install awscli.
... OR, if you can't do that for some reason:
Downgrade Requests to version 2.12, which according to https://github.com/boto/botocore/issues/1258#issuecomment-331746809 is compatible with the old versions of AWS CLI, by running pip uninstall requests && pip install requests==2.12 or pip3 uninstall requests && pip3 install requests==2.12.
I believe this issue is fixed as of botocore v1.11.0, so eventually, once the version of awscli in Apt's repositories uses a botocore version >= v1.11.0, this bug should go away.
Related
I tried to install django4.0.1 in ubuntu20.14 with virtual environment.
pip install Django==4.0.1
It showing error as
No matching distribution found for Django==4.0.1
Previously in the same OS django4.0.1 was installed, but why its not installing now?
I tried many ways
Now it's installing only django3.2.12.
Suggest me a way to get latest version
When trying to install requests or literally anything using pip it'll collect the option and then give me this ERROR every time. I can't use pip to install anything.
C:\Users\evand>pip3 install requests
Collecting requests
ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: path/to/ca-bundle.crt
Version of pip:
C:\Users\evand>pip --version
pip 19.2.3 from c:\users\evand\appdata\local\programs\python\python38-32\lib\site-packages\pip (python 3.8)
Version of Python:
C:\Users\evand>py --version
Python 3.8.3
Current Environment Variables (If this is related at all)
I have also tried the 'Repair' option using the Python Installer as well as uninstalling then reinstalling as a custom installation with 'Add to PATH' and the other options. That didn't fix the issue, so I deleted pip along with every module installed on my computer then reinstalled pip. Nada. At this point, I can no longer program with this computer because I cannot import any module in any of my scripts. I am not sure why this issue suddenly arose. Help would be very much appreciated.
This worked for me:
Uninstalling the pip configuration file in %appdata%/pip/ then 'modifying' python using the python launcher.
I am using Azure to create an Ubuntu server 18.04. The python3 default version in this VM is 3.6.9. I tried to install python3-pip, then install Tensorflow version 1.15.0 by command: sudo pip3 install Tensorflow==1.15.0.
However I got this error: No matching distribution found for tensorflow==1.15.0
I really don't know how to fix it. On my Windows PC, I got the same error while using python3.7, then I change to use python3.6.5 and everythings is fine. So that I think maybe I should try to install python 3.6.5 on Ubuntu VM. But again, this time, I can't install correctly python 3.6.5 on my Ubuntu server.
Can you please help me to fix it. I am just a newbie and honestly, I am not really good with Ubuntu.
Thank you so much.
I had the same issue.
A simple upgrade of pip to the latest version by:
sudo -H pip3 install --upgrade pip
sudo -H pip2 install --upgrade pip
solved the problem for me. Checkout https://askubuntu.com/questions/712339/how-to-upgrade-pip-to-latest for details how to upgrade pip.
After checking it seems the pip3 version shipped with Ubuntu defaults to pip 9.0.1. However, this version seems to supports only up to Tensorflow 1.14.
I would also strongly suggest to use virtual environments like Anaconda in order not to mess up your system python.
E.g.: https://docs.anaconda.com/anaconda/install/linux/
These are the list of files for TensorFlow 1.15
This command would work:
pip3 install tensorflow==1.15.0
I do see the manylinux wheel file for Ubuntu.
What CPU model and pip version are you using?
Debugging:
pip3 -v install tensorflow==1.15.0 | grep Found | more
Can help you see which platform and tags pip3 is trying to find in wheel files.
In the past I also have seen issue with pip default version (9.0.1), make sure you are running a recent version (e.g. pip-20.0.2):
apt install python3-pip && pip3 install --upgrade pip
To do this I ran just ran the command
pip3 install azure
and from what I could tell this retrieved the latest versions of the various Azure modules for Python3. For example, the Postgres version was listed as 2017-12-01 and networking was 2018-08-01. However, I ran the same command from two other Ubuntu systems and on these systems the Postgres version was much older, 2017-04-30-preview.
How do I insure that the latest stable versions of the Azure SDK modules are installed when I run the pip install command on a system?
After a lot more trouble than it should have been, I managed to get pip3 updated on these systems and then running
pip3 install azure
installed the latest versions of the Azure modules. I didn't realize the version of pip impacts which versions of external modules it installs but apparently it plays a role.
I'm trying to install an rpm package.
It keeps saying Requires: python-tornado >= 2.2.0
I have installed tornado 3.2 but the problem still exist.
How can I resolve this issue?
python-tornado is the correct RPM for the tornado web framework written in Python.
Did you install tornado 3.2 with pip or with an rpm? RPM doesn't know about things installed with pip, so you'll need an RPM version of tornado to use with this rpm (or install whatever you're trying to install here with pip instead of rpm)