Search code examples
pythonpowershellnano

Saving python file in virtual environment


I'm just trying to Save a simple program, in powershell Python Nano Virtual Environment.

But I am getting an error in saving the file.

enter image description here

At last and final Step 6 of this blog post, where I have done 1-5 finally. program should save.

https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-windows-10

Why am I getting this error & how do I overcome it?


Solution

  • This error may happened, because you try to write in a directory which is protected.

    Try to create a directory for your project "c:\mySources" and create your scripts inside.