本文共 1724 字,大约阅读时间需要 5 分钟。
(show_buiding) root@iZj6c3ru5234oqhlkiphcnZ:~/web/show_buiding# pip install mysql-pythonCollecting mysql-python Downloading http://mirrors.aliyun.com/pypi/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip (108kB) 100% |████████████████████████████████| 112kB 38.9MB/s Complete output from command python setup.py egg_info: sh: 1: mysql_config: not found Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-UiAlHl/mysql-python/setup.py", line 17, in 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-UiAlHl/mysql-python/
~# sudo apt-get install libmysqld-dev
(show_buiding) root@iZj6c3ru5234oqhlkiphcnZ:~/web/show_buiding# pip install mysql-pythonCollecting mysql-python Downloading http://mirrors.aliyun.com/pypi/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip (108kB) 100% |████████████████████████████████| 112kB 36.7MB/s Building wheels for collected packages: mysql-python Running setup.py bdist_wheel for mysql-python ... done Stored in directory: /root/.cache/pip/wheels/37/dc/35/1f1c0e32a9addf0f8b0a3a569045f5351855ba0b48f78946beSuccessfully built mysql-pythonInstalling collected packages: mysql-pythonSuccessfully installed mysql-python-1.2.5
转载地址:http://fdcqi.baihongyu.com/