Win7 Python development Environment Building

Source: Internet
Author: User

1. Download Anaconda and install

Address: https://www.anaconda.com/download/

Anaconda includes a python base package and a series of scientific computing packages that are installed without having to install Python separately.

2, Installation Pycharm

Address: https://www.jetbrains.com/pycharm/

Pycharm is the python development IDE.

3. Install Python components using PIP

Pip is a Python component management command, Anaconda scripts directory, my environment path is as follows

C:\ProgramData\Anaconda2\Scripts

(1) Online installation

CMD into the PIP directory

Pip install Python component, download and install online

Pip Uninstall Python component, uninstalling the Python component

(2) PIP Setup Agent

Pip--proxy=http://[user name: password] @[host:port] Install Python components, such as

Pip--proxy=http://coshaho:[email protected]:8080 Install NumPy

(3) Offline installation

You can search for the components you need at the following address: https://www.lfd.uci.edu/~gohlke/pythonlibs/

Pip install absolute path/python component file name, perform an offline installation, for example

Pip Install C:\USERS\COSHAHO\DOWNLOADS\LOCKFILE-0.12.2-PY2.PY3-NONE-ANY.WHL

4. Create a Python project

Pycharm–> File--New Project

Where base interpreter specifies the Python path, inherit global site-packages is introduced to all installed Python components.

5. Import Python Project

Pycharm–> File--Open

Note that you need to set the package path start location to content Root in project structure,,file–> settings–> projects

6. Could not find or load Qt Platform Plugin exception resolution

(1) Conda installation QT,PYQT

Conda for Anaconda Component Management commands, the directory is as follows C:\ProgramData\Anaconda2\Scripts

      1. Online Installation: Conda install Qt,conda install PYQT
      2. Conda proxy settings: Edit the C:\Users\h00219638\. condarc file and add the following

Use_pip:true

Proxy_servers:

Http:http://coshaho:[email protected]:8080

Https:https://coshaho:[email protected]:8080

3. Offline installation

Conda Component library: https://repo.continuum.io/pkgs/free/win-64/

Conda install absolute path \ component file name, offline installation, for example

Conda Install C:\ProgramData\Anaconda2\pkgs\qt-5.6.0-vc9_0.tar.bz2

4. Setting the QT environment variable

Qt_qpa_platform_plugin_path=c:\programdata\anaconda2\pkgs\qt-5.6.0-vc9_0\library\plugins

Win7 Python development Environment Building

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.