Skip to content Skip to sidebar Skip to footer

Installing A Python Package In A Desired Folder

I have downloaded a python package to install, on my ubuntu machine. The package has already a setup.py file to use, but I want to change the default python installation address to

Solution 1:

To answer your question about the export path. Do you have $PYTHONPATH as a part of your $PATH? If not you should add it to path.

The best way to handle this scenario in my opinion is to use a virtual python environment. There are a couple to choose from, but I like virtualenv the best. The reason to take this approach is because you can manage different versions of python in separate folders. And have separate packages installed in these folders. I recommend looking into it as it is a very useful tool. If you want an examole of how to use it i can provide that https://virtualenv.pypa.io/en/stable/

Post a Comment for "Installing A Python Package In A Desired Folder"