Article directory
question
Question 1. When entering python in cmd, access is denied.
Normally, version and other information as shown in the figure will appear:
Question 2. When importing an existing python interpreter into Pycharm, the following error occurs
Cannot run program
"G:\Anaconda3\Scripts\conda.exe": CreateProcess error=5,
Reason – permissions issue
These two problems are permission issues after reinstalling the system, and the environment variables are not added to the system, so this situation occurs.
solution
1 Registry settings
1) Win+R, enter regedit, open the registry
2) Find the path: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System
3) Click to modify the key value under this path:
EnableLUA 从1 设置为0
2. Add environment variables
1) Find the advanced system settings of your computer
2) Find the installation directory of your Anaconda and Pycharm, and add the relevant folder paths in the directory to the system variables, as follows:
D:\Anaconda3\Library\usr\bin
D:\Anaconda3\Library\bin
D:\Anaconda3\Scripts
D:\Program Files\JetBrains\PyCharm Community Edition 2021.2.1\bin
The above is mine, the actual path is selected according to your own installation location.
3 Pycharm imports Anaconda’s virtual environment
The details are as shown in the picture:
available for personal testing!
[Long Yi’s Programming Life] This official z account is mainly used to share artificial intelligence, embedded and other related study notes and projects, including but not limited to Python, C/C++, DL, ML, CV, ARM, Linux and other related technologies; Share resources, learn together and have fun together!