स्थापित करने मैं virtualenv में Django 1.8.5 स्थापित किया है और का उपयोग कर अजगर 3.4.3 काम किया दिखाया गया है जब SQLiteत्रुटि: आदेश 'x86_64-linux-gnu-जीसीसी' जब mysqlclient
मैं का उपयोग कर इसे पेज काम करता है mysql उपयोग करना चाहता था और मैं
pip install mysqlclient
का उपयोग कर mysqlclient स्थापित करने के लिए कोशिश कर रहा हूँ और मैं निम्न संदेश
----------------------------------------
Failed building wheel for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient
Complete output from command /home/sasidhar/django/env/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-5lj39q67/mysqlclient/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-da2_35zs-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/sasidhar/django/env/include/site/python3.4/mysqlclient:
running install
running build
running build_py
copying MySQLdb/release.py -> build/lib.linux-x86_64-3.4/MySQLdb
running build_ext
building '_mysql' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Dversion_info=(1,3,6,'final',1) -D__version__=1.3.6 -I/usr/include/mysql -I/usr/include/python3.4m -I/home/sasidhar/django/env/include/python3.4m -c _mysql.c -o build/temp.linux-x86_64-3.4/_mysql.o -DBIG_JOINS=1 -fno-strict-aliasing -g -DNDEBUG
_mysql.c:40:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/home/sasidhar/django/env/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-5lj39q67/mysqlclient/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-da2_35zs-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/sasidhar/django/env/include/site/python3.4/mysqlclient" failed with error code 1 in /tmp/pip-build-5lj39q67/mysqlclient
हो रही है
मैं पुस्तकालयों स्थापित करने की कोशिश की थी error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
में सुझाव दिया है और अभी भी समस्या बनी रहती है कृपया मुझे इस समस्या
धन्यवाद लोग सुलझाने में मदद !! जब से तुम python3 उपयोग कर रहे हैं,
sudo apt-get install python-dev
और::
@sasidhar हां, आप उपयोग कर सकते हैं 'sudo apt-get python3-देव स्थापित' – Paul
आपको बहुत बहुत महोदय मैं लगभग 6 बजे कल के लिए इसे करने की कोशिश धन्यवाद मैं भी अजगर-देव लेकिन 'sudo apt-get स्थापित python3-dev' स्थापित चाल –
आप एक बार फिर से धन्यवाद किया श्रीमान आप कोई समस्या नहीं @sasidhar मेरा दिन बना दिया :) mysql db :) के साथ अब चल Django) –