Hello, the other day there was a crash in my Ubuntu 14.04, all because I tried to put Skype and "accidentally" deleted the system files(dependencies). In General, the terminal had ceased to function and I decided to download Ubuntu 16.04. In General, all the fun has been established, even the old files remained in their places(the Background also had a cat). That's just one thing all the system settings I have made through the terminal tropolis. And now is not working in a python virtualenv. I use python3. Remember soared with virtualenv because of the fact that he always put python2.7 surrounded. And I remember I did some manipulation with the " alias python='SOMETHING SOMETHING' " and pip is also the same and all worked like this:
- When I wrote "python manage.py runserver", the system understood this as "python3 manage.py runserver"
- When I wrote "pip install django", the system understood this as "pip3 install django"
Now includes the means to dev and run django, bash writes to me:
<b>(tsl) dosya@dosya-PC:~/PycharmProjects/tsl/tsl$ </b>python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named 'django'</module>
<b>(tsl) dosya@dosya-PC:~/PycharmProjects/tsl/tsl$ </b>pip freeze
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Emergency stop (made a memory dump)</exec_prefix></prefix></exec_prefix></prefix>
What to do? Please help.