본문으로 바로가기
728x90

Anaconda 설치

아나콘다를 설치하면 기본적으로 디자이너가 포함되어 있습니다.

 

where 명령어를 통해 해당 프로그램의 경로를 알 수 있습니다.

(존재하지 않으면, 정보: 제공된 패턴에 해당되는 파일을 찾지 못했습니다.)

designer 를 입력하면 실행가능합니다.

 

설치를 안하신 분들은 아래 링크를 통해 다운로드 및 설치 진행

 

Individual Edition

🐍 Open Source Anaconda Individual Edition is the world’s most popular Python distribution platform with over 20 million users worldwide. You can trust in our long-term commitment to supporting the Anaconda open-source ecosystem, the platform of choice

www.anaconda.com

 

 

특정 버전의 PyQt5 설치

(다른환경에 설치하시는 분들은 pip install 하는 부분부터 보시면 됩니다.)

 

가상환경 생성

conda create -n 'name' python='version'

C:\Users>conda create -n pyqt-blog python=3.6
Collecting package metadata: done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.6.2
  latest version: 4.8.3

Please update conda by running

    $ conda update -n base -c defaults conda



## Package Plan ##

  environment location: C:\Users\d-wook\.conda\envs\pyqt-blog

  added / updated specs:
    - python=3.6


The following NEW packages will be INSTALLED:

  certifi            pkgs/main/win-64::certifi-2020.6.20-py36_0
  pip                pkgs/main/win-64::pip-20.1.1-py36_1
  python             pkgs/main/win-64::python-3.6.10-h9f7ef89_2
  setuptools         pkgs/main/win-64::setuptools-49.2.0-py36_0
  sqlite             pkgs/main/win-64::sqlite-3.32.3-h2a8f88b_0
  vc                 pkgs/main/win-64::vc-14.1-h0510ff6_4
  vs2015_runtime     pkgs/main/win-64::vs2015_runtime-14.16.27012-hf0eaf9b_3
  wheel              pkgs/main/win-64::wheel-0.34.2-py36_0
  wincertstore       pkgs/main/win-64::wincertstore-0.2-py36h7fe50ca_0
  zlib               pkgs/main/win-64::zlib-1.2.11-h62dcd97_4


Proceed ([y]/n)?

 

만든 가상환경 activate

C:\Users>conda activate pyqt_blog

(pyqt_blog) C:\Users>

 

 

더보기

pip install pyqt5=='version'

 

(from versions: 5.7.1, 5.8, 5.8.1.1, 5.8.2, 5.9, 5.9.1, 5.9.2, 5.10, 5.10.1, 5.11.2, 5.11.3, 5.12, 5.12.1, 5.12.2, 5.12.3, 5.13.0, 5.13.1, 5.13.2, 5.14.0, 5.14.1, 5.14.2, 5.15.0)

 

pip install pyqt5 

pip install pyqt5_tools

pip freeze

(pyqt_blog) C:\Users>pip install pyqt5
Collecting pyqt5
  Using cached PyQt5-5.15.0-5.15.0-cp35.cp36.cp37.cp38-none-win_amd64.whl (64.5 MB)
Collecting PyQt5-sip<13,>=12.8
  Using cached PyQt5_sip-12.8.0-cp36-cp36m-win_amd64.whl (62 kB)
Installing collected packages: PyQt5-sip, pyqt5
Successfully installed PyQt5-sip-12.8.0 pyqt5-5.15.0

(pyqt_blog) C:\Users>pip install pyqt5-tools
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.0.1.7-cp36-cp36m-win_amd64.whl (57.4 MB)
Collecting click
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting python-dotenv
  Using cached python_dotenv-0.14.0-py2.py3-none-any.whl (17 kB)
Requirement already satisfied: pyqt5==5.15.0 in c:\users\.conda\envs\pyqt_blog\lib\site-packages (from pyqt5-tools) (5.15.0)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\users\.conda\envs\pyqt_blog\lib\site-packages (from pyqt5==5.15.0->pyqt5-tools) (12.8.0)
Installing collected packages: click, python-dotenv, pyqt5-tools
Successfully installed click-7.1.2 pyqt5-tools-5.15.0.1.7 python-dotenv-0.14.0

(pyqt_blog) C:\Users>pip freeze
certifi==2020.6.20
click==7.1.2
PyQt5==5.15.0
PyQt5-sip==12.8.0
pyqt5-tools==5.15.0.1.7
python-dotenv==0.14.0
wincertstore==0.2

 

conda info --envs

pyqt-blog             *  C:\Users\.conda\envs\pyqt-blog

일반적으로 디자이너 경로는 다음과 같습니다.

가상환경\Lib\site-packages\pyqt5_tools\Qt\bin\designer.exe

 

designer.exe 를 바탕화면에 바로가기하여 쓰시면됩니다.