Installation and configuration of win10 + pypy3 interpreter and installation of third-party libraries

     The pypy3 interpreter is much faster than cpython. I originally wanted to solve the problem of video freezes during face recognition, so I got into the pypy3 interpreter and recorded the pits I stepped on during installation.

1. Download pypy3.6-v7.0.0-win32 version:

      Address: http://www.pypy.org/download.html

       Download link of Baidu Cloud: Link: https://pan.baidu.com/s/1FKa0HZs1g12J54fMQUus_w Extraction code: k996  

2. Install and configure environment variables:

 Unzip directly:

Configure environment variables:

Right-click the mouse -> Properties -> Advanced System Settings -> Environment Variables -> System Variables -> Path -> Edit -> New ->

File address after decompression (D:\ruanjiananzhuang\pypy3.6-v7.0.0-win32) ——>OK

As shown below:

Check whether the configuration is successful:

win+R——>Enter cmd, it means success! !

3. Install third-party libraries after installation and configuration:

If directly

pypy3 -m pip install XXX

An error will be reported, pip cannot be found, as follows:

Next, install pypy's pip and requests:

Download link: https://bootstrap.pypa.io/get-pip.py

Baidu network disk extraction link: https://pan.baidu.com/s/1Pqofpc0h6th8nsFr2Lq2Ag Extraction code: q9ps  

After downloading, put the get-pip.py file in the decompressed folder, enter cmd into the black window, enter the following command, as shown in the figure below, and configure the bin folder to the environment variable:

pypy3 get-pip.py      # 安装
pypy3 -m pip install requests  # 安装requests包

Once the environment is configured, you can install the third-party library, but I have an error here, posted it for your reference:

I searched the Internet for this error error: Microsoft Visual C++ 14.1 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

Let install C++ 14.1 library, but the library has 4G ( https://blog.csdn.net/saucyj/article/details/79043443 )

Note: This is the installation under pypy3, so if it is not suitable under the python environment, a platform error will be reported, whether it is 32-bit or 64-bit.

Download: Microsoft Visual C++ Build Tools (Reference: https://blog.csdn.net/u012247418/article/details/82314129 )

Microsoft Visual C++ Build Tools (installation package Baidu cloud link: https://pan.baidu.com/s/1ExkWiJJLbjs-Vz9A05neBw extraction code: oggw)

Let's verify whether the library can be installed:

Install numpy

Okay, so the environment is set up! ! ! ! I’ve been tossing for a long time, the company’s computer has no internet, and the installation is very troublesome. I have installed it on my own machine. I am very happy. Take a note and refer to it if you need it! ! !

 

The computing library numpy is installed, but many libraries for image processing such as opencv-python, tensorflow,..., etc. still cannot be installed. The corresponding pypy3 version is not available, and there are very few online materials. ,,,,, update here first, if there are other solutions, update again.

 

You can pay attention to the official account of my friend and me~~~ Here are some python technical information that my friend and I update from time to time! ! You can also leave a message to discuss technical issues. I hope you can support and pay attention to it. Thank you~~

 

Guess you like

Origin blog.csdn.net/weixin_39121325/article/details/88655370