Pycharm initially created to build the project and the environment

Reprinted from: https: //www.cnblogs.com/loyung/p/8554836.html

Pycharm is indeed a very good Python development IDE, especially for beginners.

 

Open the New Project

 

1. Select Create a Pure Python project, the newly created item can be selected at the Location. 

2.Project Interpreter part is selecting new projects depends python library, the first option will resume a venv (virtualenv) in the project directory where to store a virtual python environment. Here all the libraries depend directly from the system can be installed standalone python. 

3.Existing Interpreter associated with existing python interpreter, if you do not want to appear venv virtual interpreter in the project you can choose python environment locally installed. 

So in the end both the how to choose it, choose New Environment proposed here can be installed in the Base Interpreter Python interpreter selection system, the benefits of doing so are many. 

  • python project can be deployed independently
  • Prevention of presence of libraries between multiple projects to deploy a single server version dependency problems
  • You can also leverage the flexibility of the project

Project development process, we will use a lot of third-party libraries:

Open the project file - Settings - Project --project Interpreter-- third-party library list to select the project environment, and view items referenced in the project environment

Click Search to add the required third-party libraries

The default address is https://pypi.python.org/simple address abroad will be very slow to download, where you can select Manage Repositories add domestic pip mirror

 

It is recommended that three very good image of the country

https://pypi.tuna.tsinghua.edu.cn/simple/ Tsinghua Mirror

http://pypi.douban.com/simple/ watercress Mirror

http://mirrors.aliyun.com/pypi/simple/ Ali mirror

Guess you like

Origin www.cnblogs.com/Li-JT/p/12185320.html