Environmental problems encountered by anaconda python3.7 + pyside2 + pycharm

1. When using anaconda python3.7, install conda install pyside2. Always prompt, dll not found
insert image description here

At this time, you must use pip install pyside2 to install it.

2. After the installation is complete, the problem in the figure below may appear. At the end of 2019, many libraries do not support py37 very well.

You need to add environment variables to the program, and find the path yourself

envpath = 'D:\ProgramData\Anaconda3\Lib\site-packages\PySide2\plugins\platforms'
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = envpath

insert image description here
3. Install python 3.6

4. Another solution
is to create a new py36 virtual environment in anaconda. None of these problems will be encountered.

https://blog.csdn.net/isyiming/article/details/79225608

insert image description here
insert image description here
After clicking Create, wait for it to complete. After that, set up the virtual environment in pycharm.
insert image description here
insert image description here
insert image description here
insert image description here
There must be two files in the project directory on the left. If not, just copy them directly under the Anaconda3\Lib\site-packages directory.

If you want to use the conda command to manage, you can refer to
https://blog.csdn.net/lyqlola/article/details/89309509

conda install 依赖包 -n py36
conda list -n py36

Guess you like

Origin blog.csdn.net/liuzhuchen/article/details/101348454