Thẻ: python
-
“ModuleNotFoundError: No module named ‘django’ in Python”
ModuleNotFoundError: No module named ‘django’ in Python # 👇️ in a virtual environment or using Python 2 pip install Django # 👇️ for python 3 (could also be pip3.10 depending on your version) pip3 install Django # 👇️ if you get permissions error sudo pip3 install Django pip install Django –user # 👇️ if you…
-
alias python
Open ~/.bash_profile file. vi ~/.bash_profile Then put the alias as follows: alias python=’python3′ Now save the file and then run the ~/.bash_profile file. source ~/.bash_profile Congratulation !!! Now, you can use python3 by typing python. python –version Python 3.7.3