python包出错的标题,消除pycharm不能够调用pip安装

作者: 韦德国际1946手机版  发布:2019-05-28

韦德国际1946手机版,python包出错的标题,消除pycharm不能够调用pip安装的包难点。难点讲述如下,报未有找到mysql_config情形变量

因为在 Ubuntu 须要利用 Python 的一连库 MySQL-Python

并发难题:

主题素材:pycharm不能调用pip安装的包

$ pip install mysql-python

Collecting MySQL-python==1.2.5 (from -r requirement (line 16))
 Downloading MySQL-python-1.2.5.zip (108kB)
100% |################################| 112kB 56kB/s 
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
 File "<string>", line 1, in <module>
 File "/tmp/pip-build-HVEeJz/MySQL-python/setup.py", line 17, in <module>
 metadata, options = get_config()
 File "setup_posix.py", line 43, in get_config
 libs = mysql_config("libs_r")
 File "setup_posix.py", line 25, in mysql_config
 raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-HVEeJz/MySQL-python/
$ pip install mysql-python
>pip install MySQL-python

_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory error: command '"C:UsersfnngjAppDataLocalProgramsCommonMicrosoftVisual C    for Python9.0VCBinamd64cl.exe"' failed with exit status 2

由来:pycharm未有设置解析器

本文由韦德国际1946发布于韦德国际1946手机版,转载请注明出处:python包出错的标题,消除pycharm不能够调用pip安装

关键词: python环境搭建 19468282伟德国际

上一篇:没有了
下一篇:没有了