This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:tensorflow [2019/01/10 14:31] – created jansen | linux:tensorflow [2019/11/12 15:32] (current) – [Python package tensorflow] jansen | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Python package tensorflow ====== | ====== Python package tensorflow ====== | ||
- | Unfortunately, | + | Unfortunately, |
Downgrading the system python version is not an option, since many other packages, desktop components and operating system utilities expect python 3.7 | Downgrading the system python version is not an option, since many other packages, desktop components and operating system utilities expect python 3.7 | ||
+ | |||
+ | **UPDATE**: as of October 2019, it seems possible to install '' | ||
===== Method using python 2.7 ===== | ===== Method using python 2.7 ===== | ||
- | Python 2.7 is still available, and tensorflow will work in that environment. has already been installed in a central location, so if python 2 is an option for you, you can use it. | + | Python 2.7 is still available |
===== Method using a python virtualenv: ===== | ===== Method using a python virtualenv: ===== | ||
- | Probably the mbest solution is, to create a separate python environment using python 3.6. | + | Probably the best solution is, to create a separate python environment using python 3.6. |
python3.6 -m venv mypython36 | python3.6 -m venv mypython36 | ||
here, mypython36 is the name you choose, which will become the directory name where it gets installed. | here, mypython36 is the name you choose, which will become the directory name where it gets installed. | ||
source mypython36/ | source mypython36/ | ||
- | this is the command to activate the environment. This step needs to be done every time you want to use this special python | + | or for bash: |
+ | source mypython36/ | ||
+ | this is the command to activate the environment. This step needs to be done every time you want to use this special python | ||
Inside the environment, | Inside the environment, | ||
pip install tensorflow | pip install tensorflow | ||
pip install keras | pip install keras | ||
+ | pip install jupyter | ||
will install these packages into the newly created environment. | will install these packages into the newly created environment. | ||