You need to connect mysql to django. I did so pip install mysql-python . This method gives the error: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-331syeib/mysql-python python I’ve been developing for python for not so long, but I assume that the problem will be corrected by the virtual environment, ie . venv . Is it possible to use it out of the box in pychram? Version of python 3
|
2 answers
There is a way through the "mouse clicks": Preferences -> Project Interpreter -> gear in front of the interpreter -> Create VirtualEnv. Create, switch to it (set venv created by the default environment for the project), put the necessary modules.
|
You open the console in pycharm.
Install virtualenv:
$ [sudo] pip3 install virtualenv
Then create the environment:
$ virtualenv myenv
you launch:
source myenv / bin / activate
Install the necessary packages as usual.
Everything will be installed in a virtual environment.
Do not forget to tell the interpreter the path to python-3 from the virtual environment.
And in the project launch settings, specify the correct interpreter.
|
mysql-pythondoes not support Python 3. - jfs