I am trying to install tensorflow in Windows,
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py3-none-any.whl
The error I got is
Collecting protobuf>=3.4.0 (from tensorflow==1.9.0) Could not find a
version that satisfies the requirement protobuf>=3.4.0 (from
tensorflow==1.9.0) (from versions: ) No matching distribution found
for protobuf>=3.4.0 (from tensorflow==1.9.0)
I googled online and I couldn't find any solutions. I am using python 3.5 64 bit
If you are using Anaconda
Create a new environment or activate your existing environment
conda create -n Tensorflow_Environment python=3.6
activate Tensorflow_Environment
pip install --ignore-installed --upgrade tensorflow==1.9.0
You could refer Tensorflow Install for GPU version Installation
I installed python 3.5.4 and tried to install tensorflow but then pip started showing SSL certificate error. Googling online gave me a stackoverflow answer here.
The command that worked for me is
python -m pip install tensorflow --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org
Related
I can't install pillow on my computer anymore. When I tried pip install Pillow, I get warnings and then 2 errors :
ERROR: Could not find a version that satisfies the requirement pillow (from versions: none)
ERROR: No matching distribution found for pillow
I saw a lot of people in the same case and I tried all the solutions but nothing worked. Do you have any idea on how to re-install pillow?
Install with whatever you use to run Python, not pip directly. For example:
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade Pillow
See https://snarky.ca/why-you-should-use-python-m-pip/ for more details.
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
I'm trying to upgrade pip but the below command didn't worked out. Currently, I have pip version 10.0.1 and I want to upgrade it to 18.0
command I tried in cmd:
python -m pip install --upgrade pip
It's showing:
Attribute Error:module 're' has no attribute 'findall'
There might be something wrong with your pip instalation
try this:
curl bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
My problem is with my version of pip 9.0, upgrading always fails (I run a MacBook with OSX 10.7.5) showing similar message like this example , If any one had an idea...:
$ python -m pip install --upgrade pip
Requirement already up-to-date: pip in /Library/Python/2.7/site-packages
But every time I use pip install, is this:
$ pip install lxml
Collecting lxml
Could not fetch URL https://pypi.python.org/simple/lxml/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) - skipping
Could not find a version that satisfies the requirement lxml (from versions: )
No matching distribution found for lxml
Make sure you have exited python and you are back in main Anaconda terminal. Press
exit
to leave python and then run this code
python -m pip install --upgrade pip
or run the commands below;
conda config --add channels conda-forge
conda update pip
If you are in windows and using virtual env then use
(virtual env) c/path>easy_install -U pip
this will update pip inside the virtual env and if you do it outside of virtual env then it should also work there as well.
this will update pip 18.0 in virtual env and if you do it outside of virtual env then it should also work there as well.
python -m pip install --upgrade pip 18.0
i tried many ways to install tensor flow on my windows system with anaconda 5.0 and python 3.6
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl
pip3 install --ignore-installed --upgrade tensorflow
conda install -c conda-forge tensorflow
conda config --add channels conda-forge
conda install tensorflow
but it shows errorpackage missing in current channel
after it i also tried to degrade my python version from anaconda navigator after the whole process python version is same as before.
Finally , Solved my problem by reinstalling the anaconda and python 3.5. and after the re-installation i install tensor-flow by anaconda navigator and it worked for me.
I am running python 3.6 on windows and am attempting to install Shapely using
pip install shapely==1.6b2
It is giving me the following errors
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Cameron\AppData\Local\Temp\pip-build-242ae_ih\shapely\
I have seen the other posts about this issue and have tried:
pip install --upgrade setuptools
pip install ez_setup
easy_install -U setuptools
Nothing seems to work and I am not sure what to do next. Any advice would be appreciated.
Thanks
You may try to use the binary from this unofficial site. Just use pip install {wheel file name} to install it.
Shapely‑1.5.17‑cp36‑cp36m‑win32.whl (32-bit)
Shapely‑1.5.17‑cp36‑cp36m‑win_amd64.whl (64-bit)
Hope this would make the installation easier.
I had a similar error for installing shapely-1.5.17 via pip install shapely, and installing this made the pip install command work thereafter:
sudo apt-get install libgeos-dev
As of 2020, you can now simply install Shapely for Windows with:
pip install shapely
(you many need --upgrade to get at least version 1.7.0, when binary wheels were added for Windows)