Installation of psyco under windows

  http://blog.chinaunix.net/uid-7552961-id-2611403.html

1. It is written here

Chapter 14. Psyco

Table of Contents

14.1. Installation

Psyco is a Python code accelerator that enables Python code to execute as fast as a compiled language.

14.1. Installation

Installing Psyco is very simple. It has two installation methods, one is the source code method, and the other is the binary code method:

  • If you use the source code to install, you need to call the python setup.py install command in the source code directory to compile and generate the psyco subdirectory, and then copy the entire subdirectory to the python site-packages directory.

  • If it is installed in binary code, download the appropriate binary file according to the corresponding table of python and psyco versions in this URL list. After decompression, a psyco-1.x directory will be generated, and the entire psyco directory in this directory will be copied to python. Site-packages directory can be.

2.

https://www.cnblogs.com/roving/p/4652075.html

Install psyco 1.6 under Windows 64-bit

When running python with eclipse, there is always a red prompt on the first line: psyco is not installed, the program can run normally but it will be a little slow. So just put it on, the less red tips are, the more comfortable it is.

Baidu a bit, here, http://sourceforge.net/projects/psyco/files/psyco/1.6/, downloaded the first exe, but an error will be reported after opening it, probably because of 32-bit problems. I've dropped a few in other places, and they're all the same.

( Download the correct installation package ) Then I noticed the second compressed package, and I found that it was the installation package that needed to be compiled, so I ran it:

python setup.py install

I'm getting an error, but I don't know how to fix it

  File "setup.py", line 71
    raise ProcessorAutodetectError, "cannot run 'uname -m'"
                                  ^
SyntaxError: invalid syntax


Error, Unable to find vcvarsall.bat, can only continue to Baidu. I won't talk about the process, let's just talk about the result. The reason seems to be the lack of gcc or something. I installed MinGW for the first time, then installed gcc, and reported an error.

Later I found this: https://github.com/develersrl/gccwinbinaries, the installation path is C:/mingw, and then add C:/mingw/bin to the environment variable path.

Finally, find distutils.cfg in the python installation directory D:/Python26/Lib/distutils. If not, create a new one and edit the content:

[build]
compiler=mingw32

Save, reopen cmd (it seems that the environment variable will take effect after reopening it once), run the installation, done!

This is all I can find so far, and I hope God will give a tutorial

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324647260&siteId=291194637