I tried to install eli5 Python package via the below command in my google colab file.
!pip install eli5
And I'm getting this error when running the above command.
AttributeError: module 'jinja2.ext' has no attribute 'with_'
I tried to update jinja2 via the below commands, but it didn't resolve the issue.
!pip install --upgrade aiohttp_jinja2
!pip install --upgrade jinja2>=3.0
How to fix this issue?
This problem is caused by incorrect versioning of the jinja2 package inside the eli5 itself. There are some PRs that address this issue.
So you can:
wait for those PRs to be released in the new eli5 version
or
quickfix it by installing jinja2 of version 3.0.0 - 3.0.2
!pip install --upgrade jinja2>=3.0 didn't work because, I suppose, pip installed version greater than 3.0.2
Related
I tried to install stellargraph in a Python 3.6.13 venv. It threw the following error:
Then I ran pip install --upgrade pip and re-ran the installation. It worked. I want to understand why upgrading pip was the game changer. The error related to TensorFlow had nothing to do with it.
It is pretty self-explanatory from your console output. stellargraph needs tensorflow>=2.1.0 which isn't not supported by your pip version 18.1.
So when you updated pip to 21.0.1, it could find a successful distribution of tensorflow (>2.1.0) and could therefore install stellargraph in the correct manner.
when I import syft in Python3.7, it says: ModuleNotFoundError: No module named 'google.protobuf.reflection'.
when I import TensorFlow, it says: ImportError: cannot import name 'descriptor' from 'google.protobuf' (unknown location).
How to solve these two problems?
The related software information are:
Mac OSX
Python3.7.3
protoc version is 3.8.0
pip3 is located in:/Users/susan/anaconda3/bin/pip3
Uninstall google and protobuf and install them again
pip uninstall protobuf
pip uninstall google
pip install google
pip install --upgrade protobuf
The most important thing is that you should use the latest stable version of protobuf.
I'm trying to install the package named sshtunnel but I'm getting the followig error:
Error ocurred when installing package 'shhtunnel'
And it shows the following when I click on details:
I have seen that I need to change cryptography version but I don't know how do it
How can I install it?
Thanks!
First of all, upgrade your pip to the latest version and try to install sshtunnel. If this could not solve your problem then set cryptography to version 2.8 using the following command:
pip install cryptography==2.8
!pip install web3
I tried like this but I got this error message.
ERROR: chainer 6.5.0 has requirement typing-extensions<=3.6.6, but you'll have typing-extensions 3.7.4.1 which is incompatible.
What should I do for this problem?
You need to downgrade typing-extensions to a version older than 3.6.6:
pip install --force-reinstall typing-extensions<=3.6.6
I was following Apache's instructions to install MxNet for Python on a MacOS (CPU): http://mxnet.incubator.apache.org/install/index.html
However, when I get to the line
pip install mxnet --pre
I run into the issue where it quits installing due to the following error:
awsebcli 3.12.4 has requirement requests<=2.9.1,>=2.6.1, but you'll have requests 2.18.4 which is incompatible.
If someone could help me figure out what's going on, that would be really helpful. I'm running this on a Macbook Pro with High Sierra and Python 3.6.5 on it as well as EB CLI 3.12.4
EDIT: I tried using (as suggested):
pip install requests==2.9.1
However, it results in
awsebcli 3.12.4 has requirement requests<=2.9.1,>=2.6.1, but you'll have requests 2.18.4 which is incompatible.
Installing collected packages: requests
Found existing installation: requests 2.9.1
Uninstalling requests-2.9.1:
Successfully uninstalled requests-2.9.1
Successfully installed requests-2.18.4
This prevents me from finishing my installation of MxNet and I'm unsure how to proceed.
Looks like you have a higher version of requests than needed for awsebcli. Try installing the lower version if that works for you:
pip install requests==2.9.1