我尝试在Pop!_OS 20.04上安装软件包_OS。下面是我运行的命令和我得到的错误:
[user]@[host]:~$ python3.9 -m pip install flask-mysqldb
Defaulting to user installation because normal site-packages is not writeable
Collecting flask-mysqldb
Using cached Flask-MySQLdb-0.2.0.tar.gz (2.1 kB)
Preparing metadata (setup.py) ... done
Coll
我发现很多人在使用pip安装python包时遇到了问题,因为没有安装python-dev。主要是错误:
fatal error: Python.h: No such file or directory
所以问题是: python-dev应该是pip的必需依赖项吗?或者这只是使用pip安装某些包的问题,如果是这样的话,是否有某些步骤可以确保用户在安装模块时不会遇到错误?
安装sudo pip install google-python-cloud-debugger==1.10后
import googleclouddebugger
import cdbg_native as native
ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
vm是一台新安装的机器。
根据这个,我必须更新我的LD_LIBRARY_PATH。但我不能是我的/path/to/mysodir
我有一个码头容器(bash),,我想使用命令pip intsall numpy在容器中安装pip intsall numpy,但是它会产生错误SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-dev。
当我试图使用命令pip install python-dev安装python时,它会给出错误Could not find a version that satisfies the requirement python-dev (from versions: n
我正在尝试安装以将其与一起使用,但在执行以下操作时:
pip install pyldap
我得到:
In file included from Modules/LDAPObject.c:4:0:
Modules/common.h:10:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit stat
我尝试在我的DS2413+ (DSM4.3)上安装psycopg2。我已经安装了Python 2.7和ipkg和pip。当我这样做的时候:
/opt/local/bin/pip2.7 install psycopg2
我得到以下错误:错误:找不到pg_config可执行文件。
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/t