Join us
@faizalm47194738 ・ Oct 30,2021 ・ 1 min read ・ 32831 views ・ Originally posted on faun.pub
So, recently, I saw that many beginners are encountering this difficulty while installing Python 3 for the first time; in fact, when I installed Python for the first time, I had the same issue. The solution is simple, as we shall see in this article.
The Problem!
So, when we install Python 3, we usually do skip and next without selecting any options. When we install Python, we get the “Add To Path” option; if we ignore this option, we get this error in Python.
The scenario differs depending on the type of operating system.
The resulting error for Windows looks like this:
The resulting error for Linux looks like this:
Possible things that could raise this error?
The Solution!
For Windows Users Steps are:
Then click OK to go to the CMD terminal and check for python. The error should now be resolved.
For Linux Users:
Setting path in linux is different it depends on the shell you are currently using. For different shells it will be like this:
a). In the csh shell −
b). In the bash shell (Linux) −
c). In the sh or ksh shell −
Note − /usr/local/bin/python3 is the path of the Python directory.
Other Solution
For ImportError : No module named ‘encodings’ in a virtual environment:
The Error Should look like this:
You Just need to remove virtual environment files. Follow this command.
Conclusion
It is all about this issue. I hope this is found useful for you guys. Let me know if you have any queries regarding this, Thank You.
Join other developers and claim your FAUN account now!
Influence
Total Hits
Posts
Only registered users can post comments. Please, login or signup.