** Personal memo 2 **
Creating a Python environment The PC I'm using at work is Anaconda, which was working well When I tried to create an environment for my home PC, it didn't work, so I tried another method.
Windows10 home
https://www.python.org/downloads/windows/
~Windows x86-64 executable installer Drop and install
I made it Ver.3.7.7 today
I forgot to pass PATH, so I put it in the system environment variable PATH C:~\Python\Python37 C:~\Python\Python37\Scripts Added two
Worked with PowerShell
Reference URL
https://qiita.com/fiftystorm36/items/b2fd47cf32c7694adc2e https://docs.python.org/ja/3/library/venv.html
Move to the destination you want to save
Folder to create cd environment
Decide a name and create an environment → You can create a folder with the environment name without permission
python -m venv environment name
.\Environment name\Scripts\activate
"Because script execution is disabled on this system" I can't activate it somehow
Reference URL
https://toypool.hatenablog.com/entry/2019/02/08/142824 https://qiita.com/ryu22e/items/520b35db6a444d8289da
Follow the above and restart Powershell with administrator privileges
Set-ExecutionPolicy RemoteSigned
Proceed with Yes
Activate again to complete
.\Environment name\Scripts\activate
Powershell display (Environment name) ~ Maybe OK because it changed to
After that, should I prepare various things with pip install ***? In Visual studio code, it worked fine when I reselected to Python in the environment I created
numpy opencv-python pyrealsense2 open3d-python pandas matplotlib seaborn bokeh
Recommended Posts