I am getting the error
WARNING: pyjwt 1.1.0 does not provide the extra 'crypto'
for Docker command
RUN pip install --no-cache /wheels/*
while installing PyJWT==1.7.1, Is there any solution to fix this warning?
PyJWT 1.7.1 was released at Dec 7, 2018.
Extra crypto was added to PyJWT on Oct 22, 2019 hence it's available in PyJWT 2.0+.
To use pyjwt[crypto] you need to install later version. Currently the latest is PyJWT 2.0.1.
You can install pyjwt with the cryptographic Dependency with:
pip install pyjwt[crypto]
As seen in pyjwt's documentation
You can also separately install the required library with as seen on pyca/cryptography's documentation:
pip install cryptography
In order to fix the following warning
WARNING: You are using pip version 20.1.1; however, version 21.0 is
available. You should consider upgrading via the
'/usr/local/bin/python -m pip install --upgrade pip' command.
I added the following code to Dockerfile
# upgrade pip
RUN pip install --upgrade pip
I just reverted adding this and it now works correctly, although I still have the pip version warning.
Related
I need some function or api which belongs to the newest version of Tensorflow Federated. According to the tutorial of official website, I type the following to install the newest version.
pip install --upgrade pip
pip install --upgrade tensorflow-federated
Unfortunately, when the installation has been finished, the version is 0.17.0, which was published in 2020. Therefore, I just want to know how to install Tensorflow-Federated 0.28.0 on win10.
I have moved to Linux System, and everything is ok now. The win 10 platform can't download the newest version.
I am trying to install Facebook's Prophet package on my windows system using pip install fbprophet command. However, I am getting an error:
DEPRECATION: Could not build wheels for fbprophet which do not use PEP 517.
I am using pip version 20.2.2, Python 3.6.8 and all other requirements are satisfied.
I tried searching the issue with PEP 517, but couldn't find one. It seems that fbprophet package do not use PIP 517. I couldn't find a way to disable it or an alternative to install the package.
I also tried using conda install -c conda-forge fbprophet, but no luck.
Please let me know what is the issue and how can I resolve it.
Thanking you in anticipation.
You've probably resolved this by now or moved on but I was having a similar issue. On Windows I was able to install prophet by first running:
conda install -c conda-forge compilers
to install the appropriate compilers. Then run:
conda install -c conda-forge prophet
On MacOS I found I needed to install ruby version manager (RVM) to be able to install prophet
Every time I run pip the below warning comes up.
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Please help me understand it.Pip Warning
Edit 1. I tried reinstalling pip, but the Warning persists. Also, I am attaching the snip for the additional warning I got when I reinstalled the pip.
WARNING: The scripts pip.exe, pip3.8.exe and pip3.exe are installed in 'C:\Users\shash\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Warning while re-installing pip
WARNING: You are using pip version 20.3.1; however, version 20.3.3 is available.
You should consider upgrading via the 'c:\users\vignesh.rajendran\appdata\local\programs\python\python35-32\python.exe -m pip install --upgrade pip' command.
To get rid of this warning you should upgrade pip using,
python.exe -m pip install --upgrade pip
or
python -m pip install --upgrade --force-reinstall pip
After pip upgrade also you will get the Deprecation message as python 3.5 is in the end of its Life, Please upgrade to the latest python
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
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
I have a websauna project which I created using this command:
pip install -e "git+https://github.com/websauna/websauna.git#master#egg=websauna[celery,utils,notebook]"
this is found in the documentation at: https://websauna.org/docs/tutorials/gettingstarted/tutorial_02.html
This is the development version on github, and I recall it was alpha4. How do I upgrade this to the latest version(presumably at alpha5 as of this writing)?
If you want to install the latest release from the PyPi do:
pip uninstall websauna
pip install -U "websauna[celery,utils,notebook]"
If you want to follow the latest Github master branch:
pip uninstall websauna
pip install e "git+https://github.com/websauna/websauna.git#master#egg=websauna[celery,utils,notebook]"
Uninstall step might or might not be required depending on if you are switching between pip PyPi package install and pip -e.