Sibbs Gambling
Sibbs Gambling

Reputation: 20375

How to "add a folder to PYTHONPATH"?

I have downloaded a package and need to "add it to PYTHONPATH" as indicated in the documentation. How may I do it?

I am using Visual Studio for python, if that matters.

Upvotes: 1

Views: 1808

Answers (1)

pandita
pandita

Reputation: 4989

In python you can do:

import sys
sys.path.append("yourpath to package")

From within python. Or you can set your environment variables in Windows after right clicking on 'computer' and selecting properties.

Also it's easy in python to install packaged with 'pip'.

Upvotes: 3

Related Questions