Common Python environment to build and use the solution to the problem, this article is enough!

Time:2021-3-12

The text and pictures of this article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time

This article is from Tencent cloud by Python house owner
在这里插入图片描述
1. Failed to install the extension library online directly using pip, indicating SSL error.
在这里插入图片描述
Two solutions:

1) Specifies the domestic source when executing the PIP command, such as

pip install numpy -i http://mirrors.aliyun.com/pypi/simple –trusted-host mirrors.aliyun.com

2) Create a folder PIP in the appdata / roaming folder of the current login user, and create a file in the PIP folder pip.ini , the content is as shown in the figure below, and then you can directly use the PIP command to install the extension library.
在这里插入图片描述
2. When using PIP command to install the extension library, you are prompted that the permissions are insufficient.
在这里插入图片描述
resolvent:

Add the – user option after the PIP command.

3. It is unable to import Matplotlib, sklearn and other libraries in the idle of anaconda3, which indicates that the DLL file is missing. However, the same code can be executed normally in jupyter notebook and Spyder of anaconda3. As shown in the figure:
在这里插入图片描述
Solution: modify the system environment variable path and add the path in the box below.

Recommended Today

Apache sqoop

Source: dark horse big data 1.png From the standpoint of Apache, data flow can be divided into data import and export: Import: data import. RDBMS—–>Hadoop Export: data export. Hadoop—->RDBMS 1.2 sqoop installation The prerequisite for installing sqoop is that you already have a Java and Hadoop environment. Latest stable version: 1.4.6 Download the sqoop installation […]