I've installed both anaconda 2 and 3 in a Windows 64bit machine. I'm trying to install Tensorflow with anaconda as per the instructions here. However, I'm getting the following error while doing a pip install.
tensorflow-1.0.0-cp35-cp35m-win_x86_64.whl is not a supported wheel on this platform.
My anaconda info:
platform : win-64
conda version : 4.2.13
conda is private : False
conda-env version : 4.2.13
conda-build version : 1.20.0
python version : 2.7.12.final.0
requests version : 2.13.0
root environment : C:\Anaconda2 (writable)
default environment : C:\Anaconda2\envs\tensorflow
envs directories : C:\Anaconda2\envs
package cache : C:\Anaconda2\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
config file : None
offline mode : False
I would really appreciate any help since I'm banging my head on this since last 8 hours.
Edit
I've removed Anaconda 2 and tried to install tensorflow again. Getting the same error. Please find the anaconda info.
platform : win-64
conda version : 4.2.9
conda is private : False
conda-env version : 4.2.9
conda-build version : 2.0.2
python version : 3.5.2.final.0
requests version : 2.11.1
root environment : C:\Users\Gramener\Anaconda3 (writable)
default environment : C:\Users\Gramener\Anaconda3\envs\tensorflow
envs directories : C:\Users\Gramener\Anaconda3\envs
package cache : C:\Users\Gramener\Anaconda3\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/win-64/
https://repo.continuum.io/pkgs/pro/noarch/
https://repo.continuum.io/pkgs/msys2/win-64/
https://repo.continuum.io/pkgs/msys2/noarch/
config file : None
offline mode : False
Explicitly use python 3.5 when you create your Anaconda environment. IE:
create -n tensorflow python=3.5
then run the following command to install tensorflow:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
Then you can successful do the Hello Tensorflow example from https://www.tensorflow.org/install/install_windows
Use python 3.5
conda create -n tensorflow python=3.5
I've encountered the same problem recently when trying to install tensorflow v1.0 on azure vm. None of anaconda versions worked for me.
So I decided to try upgrading tensorflow to v1.0 on my local pc to see if the error will be reproducible. This resulted in the same error (even though I've installed r0.12 successfully just couple weeks ago).
Reading tensorflow installation notes carefully I've noticed the following sentence:
The Anaconda installation is community supported, not officially
supported.
So I've decided to try python 3.5.2 from python.org and this worked immediately.
I believe the problem here is that the latest tensorflow version (1.0) does not work with anaconda yet.
Nevertheless if you still want to use anaconda you can try tensorflow r0.12, but keep in mind that doing so is not recommended and there were breaking changes from r0.12 to 1.0
Believe me I have survived it.
First, please ensure that your system is Win7 64Bit and your Python version is 3.5.2(64bit), I didn't try Python 3.5.
Second, don't believe Anaconda and PyCharm. Of course I know they can both be used to install packages. However, the packages installed by them can't be synchronized to cmd sometimes.
what I want to say is: Ensure the content of cmd is the same as the website of TensorFlow.
I wanted to upload more pictures to tell you how to do, but stackoverflow didn't allow it.
Details are shown as follows:
I had the same problem, I uninstalled Anaconda and installed python 3.5.2 from python.org and I was able to run Hello Tensorflow.
On Microsoft Windows, TensorFlow needs Python 3.5 64-bit. You seem to use Python 2.7.
Try this:
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp36-cp36m-win_amd64.whl
It is the command that runs when you install with native pip. This change worked out for me
Related
I created virtual environment for python 3.4 version.I cant able to use pip from my network. I cant able to download files even. So i created virtual environment and started to install packages using conda install.
When i was using this command conda install -c syllabs_admin justext, i'm getting notification from my server like:
The following packages will be SUPERSEDED by a higher-priority channel:
python pkgs/free::python-3.4.5-0 --> pkgs/main::python-2.7.17-h9bab390_0
Can someone actually help me how to install this justext package for my python version 3.4 using conda install?
Unfortunately, no. There is no way that you can use conda install with any public channel to install justext and your python version. Checking the search function on anaconda.org, there are only two channels that provide justext:
moustik / justext 2.2.0
syllabs_admin / justext 2.2.0
Unfortunately, both have only python 2.7 packaged versions of the module.
you should try to fix your networking issues instead. It sounds really werid that conda install would be working while you claim to not be able to even download any files. Please talk to your IT department or Sys Admin about it or ask another question posting the errors you are getting when using pip install or wget https://files.pythonhosted.org/packages/6c/5f/c7b909b4b864ebcacfac23ce2f6f01a50c53628787cc14b3c06f79464cab/jusText-2.2.0-py2.py3-none-any.whl
I want to install the python-igraph package, but I am currently using python 3.6.1 and I don't find any installer for this new version of python. Do you know how can I install python-igraph for this version?
I have tried to install python-igraph for older versions from anaconda cloud but a version problem occurs.
!conda install -c vtraag python-igraph
Fetching package metadata .............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- python 3.6*
- python-igraph -> python 3.5*
Use "conda info <package>" to see the dependencies for each package.`
I know that python-igraph exists for older python versions, but I don't want to overwrite the current python 3.6 version, so I think I need a new environment to install the older version and be able to use both.
I have already tried to create a new environment for python 3.5:
!conda create -n py35 python=3.5 ipykernel
But after 30min I didn't obtain any response...
I have also followed the same procedure to install a package for python 2.7 (from marufr contributor), but I get the same problem creating an environment for python 2.7.
Note: I am working from Jupyter notebook on Windows (win-64) and using Anaconda.
Update:
Solution found here:
https://medium.com/towards-data-science/environment-management-with-conda-python-2-3-b9961a8a5097
Since there is no python-igraph for python 3.6 yet, I have to use an older version.
First, from Anaconda Prompt, install the nb_conda_kernels package before creating the new environment:
conda install nb_conda_kernels
Then, create the environment where I will work with the older python version:
conda create -n py35 python=3.5 ipykernel
Finally, install the package through the wheel (found here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-igraph)
pip install python_igraph‑0.7.1.post6‑cp35‑none‑win_amd64.whl (You have to this command in the same folder that you donwloaded the wheel!)
There is a Windows installer for igraph‘s Python interface on the Python Package Index. Download the one that is suitable for your Python version (currently there are binary packages for Python 2.6, Python 2.7 and Python 3.2, though it might change in the future). To test the installed package, launch your favourite Python IDE and type the following:
import igraph.test
igraph.test.run_tests()
The above commands run the bundled test cases to ensure that everything is fine with your igraph installation.
Now, you can download 'python_geohash‑0.8.5‑cp36‑cp36m‑win_amd64.whl'.
Use the following command to install:
pip install python_geohash‑0.8.5‑cp36‑cp36m‑win_amd64.whl
Then you can use python-igraph in your Python3.6
My question is thoroughly based on this question. The big difference is I'm focusing on windows here. The answers/question provided there were for unix distributions.
I've ran Python 2.x for quite a while and have used pip with no problems.
Now I've installed python 3 but when I open the cmd prompt and pip install somemodule it tries to install it for python 2. How can I deal with this situation ?
Both Python's were installed with the Anaconda distribution so I believe both of them come with pip installed. Note: This info come from this question
EDIT:
Found this answer which addresses that issue.
But now when I try to run the command
pip3.5 install pymssql
or
pip-3.5 install pymssql
I get the error pip3.5 is an unknown command.
If I open cmd and type python I receive:
Python 3.5.1 Anaconda 4.0.0
so it shouldn't be a version problem
You will want to make sure you have the correct Anaconda environment activated, which it looks like you have in this case.
conda env list # Display the list of conda environments
In the Windows Command Prompt you should just need to use:
activate py35 # Or whatever your Python 3.5 environment is called. (Mine is root)
pip install pymssql
Instead of pip-3.5.
To install it in another environment (mine is called py27):
activate py27
pip install pymssql
I successfully used this command in both my Python 2.7 and 3.5 Anaconda environments.
To go back to your primary environment (root), just type activate without an environment name after it
I am using the Anaconda python distribution for 64 bit, windows
https://store.continuum.io/cshop/anaconda/
I am now trying to do some genetic search, and tried to install Pyevolve
http://pyevolve.sourceforge.net/
Unfortunately it crapped out saying
"Python 2.6 not found in registry"
I do have Python 2.7.6 through Anaconda. Any way around the issue? Thanks.
I managed it using binstar:
Look for available packages: binstar search -t conda pyevolve (two packages found OpenMDAO/pyevolve and greole/pyevolve)
Ask for details of chosen package: binstar show openmdao/pyevolve (install link given)
Install package: conda install --channel https://conda.anaconda.org/OpenMDAO pyevolve
Enjoy working with pyevolve!
My system: Win8, 64-bit, Python 2.7.8, Anaconda 2.1.0 (32-bit).
Anaconda suggests using "conda" for package management. There are some package not available in its repository. You can try command below:
conda search Pyevolve
Pyevolve seems depend on Python 2.6, you can try conda to setup a new environment in 2.6 version.
When attempting to install pymc via conda, I receive the following:
C:\Anaconda>conda install -c https://conda.binstar.org/pymc pymc
Fetching package metadata: ...
Error: No packages found matching: pymc
The install is from the pymc distribution page: https://binstar.org/pymc/pymc
My current version of anaconda is up to date:
C:\Anaconda>conda update --prefix C:\Anaconda anaconda
Fetching package metadata: ..
Solving package specifications: .# All requested packages already installed.
# packages in environment at C:\Anaconda:
#
anaconda 1.9.2 np18py27_0
So as a conda newbie, I'm not quite sure what I'm missing. Perhaps I have to authorize binstar first? (No proxy issues I believe.)
Much appreciate your suggestions!
That build of pymc is only built for OS X 64-bit, Windows 32-bit, and Linux 64-bit (see https://binstar.org/pymc/pymc/2.3.2/files). I'm guessing you have Windows 64-bit. You should contact the pymc devs to see if they can build a 32-bit Windows version.
Try using:
!conda install pymc --yes
It should work. The --yes here used to skip a pause.
You can try to install an unofficial version for Windows 64-bit from here http://www.lfd.uci.edu/~gohlke/pythonlibs/