4👍
It is likely that your pip installation is pointing to a different python than your python version installed at opt/local/bin/python
. It is likely that your pip
is talking to the system installed python and not the version you installed.
You can consider uninstalling python and re-installing in the correct path or creating a virtualenv that points to the version of python you desire. Then any subsequent installs will point to the correct version of python without affecting other python installs
- [Django]-Django admin shows models name with extra "s" at the end
- [Django]-Django on Aptana Studio 3.0
- [Django]-DRF – ModelSerializer with a non-model write_only field
- [Django]-Django send_mail results in Error 60, Operation Timed Out on Mac OSX
2👍
The previous answer was correct. The solution does not require reinstall python. Best practice to use virtalenv. On the mac, ‘pip’ will reference python2 by default, to use python3’s pip the command is ‘pip3’ or ‘pip3.4’. In the current virtualenv, use ‘pip list’ or ‘pip3 list’ to display all installed modules, if django is not install then ‘pip install django’.
- [Django]-Django connect mysql problem, NameError: name '_mysql' is not defined
- [Django]-Django send_mail results in Error 60, Operation Timed Out on Mac OSX
- [Django]-Django ImageField not uploading the image