PyQt5环境安装和PyCharm绑定
PyQt5环境安装和PyCharm绑定
首先是安装pipenv,这是一个虚拟环境安装程序
使用pip install安装后,打开文件,把url中的地址改为清华镜像地址
[[source]] name = "pypi" url = "https://pypi.tuna.tsinghua.edu.cn/simple" verify_ssl = true [dev-packages] [packages] [requires] python_version = "3.8"
然后进入cd desktop\pyqt5
这时候就可以使用pipenv安装虚拟环境
1.pipenv --three 使用python3创建一个虚拟环境
2.pipenv shell 激活虚拟环境
最后使用pycharm选择虚拟环境
安装PySide2
Pip install PySide2 -i from PyQt5.Qt import *