Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

I have a directory which hosts all of my Django apps (C:\My_Projects). I want to add this directory to my PYTHONPATH so I can call the apps directly.

I tried adding C:\My_Projects\; to my Windows Path variable from the Windows GUI (My Computer > Properties > Advanced System Settings > Environment Variables). But it still doesn't read the coltrane module and generates this error:

Error: No module named coltrane

1 Answer

0 votes
by (106k points)

You just need to append your installation path (ex. C:\Python27\) to the PATH variable in System Variables. Then close and open your command line and type 'python'.

To know more about this you can have a look at the following video tutorial:-

Browse Categories

...