Now I want to build an environment for TensorFlow,
2. Install Tensorflow
TensorFlow currently only supports Python 3.5 on Windows.
(1) open Anaconda Prompt and input tsinghua warehouse image, so that the update will be faster:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
12
(2) Also use Anaconda Prompt to create a Python3.5 environment with the name of TensorFlow. Type the following command:
conda create -n tensorflow python=3.5
1
Run start menu -> Anaconda3 - & gt; Anaconda Navigator
, click the left Environments
, you can see that the environment of tensorflow
has been created.
(3) TensorFlow environment is started in Anaconda Prompt:
activate tensorflow
1
Note: when not using tensorflow, close the tensorflow environment with the command:
deactivate
After installing the environment, we go to the folder we want to run, such as CD TensorFlow
Then activate tensorFlow
The TensorFlow environment is fine, but tensorFlow is not installed,
conda insatll tensorflow
And in the environment to install jupyter Notebook, NUMpy and other modules
conda install jupyter notebook
conda install scikit-learn
From https://blog.csdn.net/u010858605/article/details/64128466
Read More:
- Error importing keras in jupyter Notebook: modulenotfounderror: no module named ‘keras’ solution
- Anaconda returns Python 3.7 to Python 3.6
- Configuration (9) to solve the problem of “setup tools PIP wheel failed with error code 1”, create virtual environments with Python of anaconda
- Anaconda create environment, delete environment, activate environment, exit environment
- Change Jupyter Notebook Default Directory
- Conda HTTP 000 CONNECTION FAILED for url
- Modify the default file location of the Jupiter notebook
- CONDA install torch error
- CONDA failed to create environment (collecting package metadata(repodata.json): failed)
- CONDA creating virtual environment and common CONDA commands
- CONDA 3090 install tenslow GPU report error importerror: libcublas.so .9.0: cannot open shared object file
- Tensorflow installation and uninstall (Anaconda version)
- Incomplete and “the Jupiter” distribution was not found
- Exception: jupyter command Jupiter notebook not found
- Virtual environment: error: virtualenv is not compatible with this system or executable
- Jupyter notebook couldn’t find CONDA’s virtual environment
- Setting up a virtual environment for jupyter notebook
- Anaconda opens Navigator to report an error and a web page appears Navigator Error An unexpected error occurred on Navigator start-up Report
- CONDA HTTP error is prompted when Anaconda prompt is installed and updated
- [Fixed]Error executing Jupyter command ‘notebook’: [Errno ‘jupyter-notebook’ not found] 2