I am able to install tensorflow for python using pip just fine but when I try and install tensorflow for pypy using:
pypy -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl
I get error messages about how pypy doesn't play well with numpy. I already have numpy installed for pypy and it workes fine. I can do
pypy
>>>>import numpy
without any errors.
What am I doing wrong here? Is there a way to try and install tensorflow without it trying to install numpy? Has anyone done this before?
youcan use directly pip
example: Mac OS X, CPU only - py2
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0-py2-none-any.whl
sudo pip install --upgrade $TF_BINARY_URL
If you need validate pip installation:
sudo easy_install pip
sudo easy_install --upgrade six
If you need info for other SO or more details you can see here
Related
I wrote pip install ppaquette-gym-doom
and it gives me a
error: legacy:install-failure
I tried pip install gensim pip install dlib --pre python -m pip install --upgrade pillow
python -m pip install --upgrade pip and python -m pip isntall --upgrade wheel
those codes didnt solved my problem
I am not familiar with gym-doom but based on some quick research it looks like you are getting this error because "ppaquette-gym-doom" is an obsolete version. From the github page "Note: This environment is not maintained anymore, and uses an old version of VizDoom."
It seems like the new version is simply "pip install gym-doom". This will also require something called Vizdoom.
Again this is based on quick research. I have never used these libraries.
I had used tensorflow before this time.Now,tensorflow is installed but it cannot be imported.Moreover,it cannot be installed again.What happened in tensorflow?I searched many solutions for this error but I cannot find.When tensorflow is installed with pip,this error appears.
Unable to create process using 'C:\Users\hp\Anaconda3\envs\tf-gpu\python.exe C:\Users\hp\Anaconda3\envs\tf-gpu\Scripts\pip-script.py install tensorfow'
And when it is installed with anaconda,it can be installed,but cannot be imported,"ModuleNotFoundError: No module named 'tensorflow'".How can I solve this trouble to reuse tensorflow without reinstalling anaconda ,please help me.Thanks a lot in advance!!
You can uninstall and reinstall the pip:
python -m pip uninstall pip
python -m pip install --upgrade pip
or update pip:
python -m pip install -upgrade pip
I have brew install python2 for OsX, then I install numpy, scipy using pip install.
I also need python3, so I brew install python3, but when I import numpy under python3, import error occurs.
I known I can fix this by install numpy using pip3 install numpy, but do I have to do this? Since I have the package already installed for python2, can I just tell python3 where it is and then use it?
Yes you need to install them using pip3 as well as python3.4 bundles pip in along side of python
I have been literally struggling to install numpy for python 2.7 and not 3.4 both of which are on my ubuntu. I have tried:
sudo pip2 install numpy
but it says
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages
but when I go to the python shell, and type import numpy, it throws an ImportError
python --version prints `Python 2.7.5`
I have no idea what the problem is even after looking at various answers to other SO questions. Is numpy installed and I'm not able to use it for some reason or isn't it installed? Please help.
First, do pip uninstall numpy and pip2 uninstall numpy just to clean up any old files.
Then, since you are on Ubuntu, you should just run
sudo apt-get install python-numpy
This will install numpy for python2. If you later choose you want it for python3, just run
sudo apt-get install python3-numpy
sudo pip2 install numpy==1.15.0
You need to specify numpy version because latest version requires Python version >= 3.5.
I'm having an issue with upgrading pip from 7.1.2 to 8.1.1. At first I downloaded Python 3.4 and installed pip from there but then noticed Python 3.5 was there so I downloaded that. When trying to use pip to install selenium it says You are using pip version 7.1.2 however 8.1.1 is available. I do "pip install --upgrade pip" then get an error. See attached screenshot.What do I do? Btw I'm on windows 8.1.enter image description here
Ok. It's working if I run cmd as an admin then do
python -m pip install --upgrade pip
In Mac, I ran:
sudo python -m pip install --upgrade pip
Then, it worked.
Did you try python -m pip install --upgrade pip? if pip is being used, it cannot install itself.
This is a common question that requires few germane steps to pre-installing other modules in Python.
Depending on the version of your Python (Either the 2.X series or the 3.X series), and the operation system (Window, Ubuntu, etc ), you will need to do the following;
Open CMD (Short-Cut: Control+R button on the keyboard)
Make sure the current directory is the administrator on the hard-drive of the system and your internet connection is available.
i.e C:\Users\System_Name PC
Type in the command:
Pip install --upgrade pip
i.e C:\Users\System_Name PC > pip install --upgrade pip
and hit ENTER key to activate:
It will uninstall the previous version and install the latest version
Restart the system and continue the installation of each python module
e.g Pip install dateutil
Pip install numpy
Pip install matplotlib
Peradventure you wish to specify the version of the python module dependencies you want to install;
Pip install Django==1.90
It will install the specific version: otherwise if not specified, the latest version of the target module would be installed.