python大神写的代码_初学Python,只会写简单的代码。手头有份Python代码,但是调用C模块生成的.pxd和.pyx文件,运行过程总报错,希望大神指点,调试前该做哪些工作呢?...
報錯內容如下:
Traceback (most recent call last):
File "E:\Python27\setup.py", line 16, in
from setuptools import setup, find_packages
ImportError: No module named setuptools
我在調試之前,做了以下相關的安裝:
[Cython](www.cython.org). Runtime requirements are the
Python packages [numpy](www.numpy.org), [scipy](www.scipy.org),
[dateutil](https://labix.org/python-dateutil), [sqlalchemy](www.sqlalchemy.org),
[sympy](http://sympy.org) and [jinja2](http://jinja.pocoo.org). The setup.py script described below
will pull these requirements automatically, but depending on your OS you might favor to install
them using your system's package manager.
Some of the decoder implementations require additional software, namely
[GLPK](http://www.gnu.org/software/glpk/) (with C headers),
[IBM CPLEX](http://www.ibm.com/software/commerce/optimization/cplex-optimizer/), and
[Gurobi](http://gurobi.com). The first is open source, the others have free academic licenses
available.
We use the alternative gurobi python API called [gurobimh](https://github.com/supermihi/gurobimh).
有哪位大神指點,感激不盡!!
總結
以上是生活随笔為你收集整理的python大神写的代码_初学Python,只会写简单的代码。手头有份Python代码,但是调用C模块生成的.pxd和.pyx文件,运行过程总报错,希望大神指点,调试前该做哪些工作呢?...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python网站开发linux_使用Py
- 下一篇: 为什么有的人特别招蚊子?