[PYTHON] Beginner virtual environment

Why create a virtual environment

I got an error when I set up the development environment according to the book of deeplearnig I bought, and as a result of investigation, I found that I had to use python 3.6.0 to use Tensorflow. In order to do that, I found out that I had to build a virtual environment, so I'll try to summarize it while experimenting as a beginner.

Build development environment with anaconda

image.png You can create a virtual environment from Create of ANACONDA NAVIGATOR. (Named tensorflow)

image.png I tried to show a list of existing environments with the command conda info -e.

Let's actually create an environment called tensorflow from Create earlier. image.png A virtual environment called tensorflow has been created! image.png You can go to the created virtual environment by opening the terminal from this arrow. image.png When I actually checked it, it was moved to tensorflow! image.png I checked the virtual environment package created by conda list. image.png I actually tried importing numpy but got an error.

image.png Next, I tried moving the virtual environment with the command (conda activate virtual environment name). image.png

I created a virtual environment with commands. conda create -n Name of virtual environment Write the packages to install. (python = x.x) (separated by spaces)

・ I was able to install tensorflow successfully!

https://qiita.com/yampy/items/4e89cd97179bbd20f726 list of conda commands

Recommended Posts

Beginner virtual environment
python virtual environment Pipenv
virtual environment in python
PyTorch introduction (virtual environment)
Virtual environment with Python 3.6
AtCoder Beginner Contest 175 Virtual entry
Build an Anaconda virtual environment
Environment
Building a Python virtual environment
[Anaconda] Activate the virtual environment
venv: Python virtual environment management
Switch virtual environment with jupyter
python standard virtual environment venv
Building a Python virtual environment
Virtual Environment Version Control Summary Python
Activate Anaconda's virtual environment with PowerShell
Build python virtual environment with virtualenv
Integrated Development Environment (IDE) vs. Virtual environment
Building a virtual environment with Python 3
Operation memo of Conda virtual environment
Install Django in a pipenv virtual environment
Beginner Kmeans
Python virtual environment and packages on Ubuntu
[5 steps] Apply anaconda virtual environment to VScode
About the virtual environment of python version 3.7
Building a virtual environment using homebrew + pyenv-virtualenv
Let's create a virtual environment for Python
[Python] Create a virtual environment with Anaconda
Effortlessly vscode + venv virtual environment (Windows) memo
[Mac] Building a virtual environment for Python
Creating a python virtual environment on Windows
Create a virtual environment with Python_Mac version
Automatically switch virtual environment with conda + direnv
Build a python virtual environment with pyenv
Output beginner
Creating a virtual environment in an Anaconda environment
I started Node.js in a virtual environment
Add a Python virtual environment to VSCode
Call anaconda virtual environment from ubuntu terminal memorandum
How to share a virtual environment [About requirements.txt]
How to create a Python virtual environment (venv)
Ubuntu18.04.05 Creating a python virtual environment in LTS
Start Django in a virtual environment with Pipenv
Python (Windows 10) Virtual Environment / Package with VS Code
Create a virtual environment with conda in Python
Try using conda virtual environment with Jupyter Notebook
[Memo] Build a virtual environment with Pyenv + anaconda
[Python] Web development preparation (building a virtual environment)
Error when entering virtual environment with workon command
Build a simple Python virtual environment without pyenv
Build a virtual environment with pyenv and venv
[Venv] Create a python virtual environment on Ubuntu
[Node-RED] Execute Python on Anaconda virtual environment from Node-RED [Anaconda] [Python]
Work in a virtual environment with Python virtualenv.
Pillow environment construction --Virtual environment by virtualenv, interactive environment by iPython
Flow of creating a virtual environment with Anaconda
Use jupyter-lab installed in python virtual environment (venv)
A memo for creating a python environment by a beginner
From Python environment construction to virtual environment construction with anaconda
Error running Jupyter Notebook in Anaconda virtual environment
Procedure to set hydrogen of atom (virtual environment)