Python问题解决方法

 头文件缺失:

../include/GL/glfw.h:176:21: fatal error: GL/gl.h: No such file or directory
compilation terminated.

#解决办法:

apt-file update

apt-file search "gl.h"

#然后安装对应的软件包

 setup.py:

$ python setup.py
Running from numpy source directory.
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
  warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied

#方法

python setup.py build

python setup.py install

 pip:

Python 3.6 No module named pip

On Fedora 25 Python 3.6 comes as a very bare version without pip and without additional dnfinstallable modules.
But you can manually install pip:

wget https://bootstrap.pypa.io/get-pip.py
sudo python3.6 get-pip.py
After that you can use it as python3.6 -m pip or just pip3.6.

 

你可能感兴趣的:(python)