Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install instructions #1

Closed
jefferis opened this issue Nov 6, 2019 · 2 comments
Closed

Install instructions #1

jefferis opened this issue Nov 6, 2019 · 2 comments

Comments

@jefferis
Copy link

jefferis commented Nov 6, 2019

Would it be possible to give a full tested instruction set for either a pip or conda install?

At the very first step with pip, I get this:

$ pip3 install tensorflow=1.9
ERROR: Invalid requirement: 'tensorflow=1.9'

so it looks like there is a small syntax error. And then

$ /usr/local/bin/pip3 install tensorflow==1.9
ERROR: Could not find a version that satisfies the requirement tensorflow==1.9 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0)
ERROR: No matching distribution found for tensorflow==1.9

which I think is because tensorflow 1.9 requires an old version of Python (<3.7.0). It would be good to indicate if a special python version is required and/or if the tensor flow version number is a hard requirement.

For the python novice, I wouldn't mind a pointer to instructions about setting a new virtual env/pyenv with the right python version.

@jefferis
Copy link
Author

jefferis commented Nov 6, 2019

conda is more explicit:

$ conda install tensorflow=1.9
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: - 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                               
                                                                                                                     
UnsatisfiableError: The following specifications were found                                                          
to be incompatible with the existing python installation in your environment:

Specifications:

  - tensorflow=1.9 -> python[version='2.7.*|3.5.*|3.6.*']
  - tensorflow=1.9 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0']

Your python: python=3.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with each other:



Package certifi conflicts for:
tensorflow=1.9 -> python=2.7 -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
python=3.7 -> pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
Package ca-certificates conflicts for:
tensorflow=1.9 -> python=2.7 -> ca-certificates
python=3.7 -> openssl[version='>=1.1.1b,<1.1.2a'] -> ca-certificates
Package pip conflicts for:
python=3.7 -> pip
tensorflow=1.9 -> python=2.7 -> pip
Package wheel conflicts for:
python=3.7 -> pip -> wheel
tensorflow=1.9 -> python=2.7 -> pip -> wheel
Package setuptools conflicts for:
tensorflow=1.9 -> python=2.7 -> pip -> setuptools
python=3.7 -> pip -> setuptools

@albert597
Copy link
Owner

Thank you for bring this issue up. You indeed need to use Python 3.6 if you use tensorflow 1.9.

I will update the readme page later this week with a detailed tested version of pip install.

Please let me know if you have anymore issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants