美文网首页
PyQt5环境搭建

PyQt5环境搭建

作者: 突突兔007 | 来源:发表于2019-07-23 10:46 被阅读0次

PyQt5 环境搭建

更换python镜像源

  • 1.pip升级
python -m pip install –upgrade pip
  • 2.pip国内的一些镜像
阿里云 http://mirrors.aliyun.com/pypi/simple/ 
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 
豆瓣(douban) http://pypi.douban.com/simple/ 
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ 
  • 3.更换源
    • 在windows中打开 C:\Users\Administrator(你的用户名)
      在此文件夹下新建文件夹pip
      进入新建的这个pip文件夹内,新建文件pip.ini,以记事本形式打开,然后敲入 (此处为清华源为例,亲测有效)
    [global]
    index-url = https://pypi.tuna.tsinghua.edu.cn/simple
    [install]
    trusted-host=mirrors.aliyun.com
    

安装python环境

省略......

安装PyQt5

pip install pyqt5

安装Pyqt5-tools

pip install pyqt5-tools

eric6的安装

下载页:http://eric-ide.python-projects.org/eric-download.html
下载地址:https://nchc.dl.sourceforge.net/project/eric-ide/eric6/stable/19.07/eric6-19.7.zip

  • 解压文件双击install.py


    image.png

安装过程中一路yes,直到安装成功。成功之后,会在python的Scripts文件夹下多出来一些文件,我们即可开发图形界面了。如下:


image.png
  • 在D:\Python37\Lib\site-packages\eric6多出来如下文件


    image.png

    我们可以双击eric6.pyw或者eric6.bat打开eric。如果嫌麻烦,可以将当前目录配合成环境变量中,直接在命令行启动即可。
    如下:


    image.png

相关文章

网友评论

      本文标题:PyQt5环境搭建

      本文链接:https://www.haomeiwen.com/subject/mkznlctx.html