1. Manual Install Of Python Package Mac Os Download
  2. Python On Mac Os
  3. Manual Install Of Python Package Mac Os 10
  4. Running Python On Mac
Active7 years, 11 months ago

I'd like to use https://github.com/erikvold/Github-to-Lighthouse-Issue-Migrator/blob/master/migrator.py but in the comments starting on line 8 it says:

But when I try I get the following error:

Sep 12, 2011  Manually installing python package. Ask Question. So I guess I need to install the package manually. So can someone plz explain or link to docs that explain how to do this? Python packages pip. Share improve this question. How do I install pip on macOS or OS. I use codepip/code to manage Python packages both for system global and for codevirtualenv/codes. Like codeeasyinstall/code, pip uses PyPI (Python Package Index) to locate and learn the download locations of packages. code% pip i. Feb 17, 2013  The OS module in Python provides a way of using operating system dependent functionality. The functions that the OS module provides allows you to interface with the underlying operating system that Python is running on – be that Windows, Mac or Linux. You can find important information about your location or about the process.

so I guess I need to install the package manually.. so can someone plz explain or link to docs that explain how to do this?

ztaticztatic
9111 gold badge12 silver badges21 bronze badges
Python on mac os

1 Answer

As @delnan said, the maintainer of Lighthouse API should really create a setup.py script. Anyway, there are two ways to achieve what you want and both require an understand of python modules.

When you import a module in python like so:

Manual Install Of Python Package Mac Os Download

the interpretor searches for a file named lighthouse.py in the directory which the input script was run and if it cannot find it there it then searches in the directories specified by the environment variable PYTHONPATH. If you do not know what an environment variable is, I suggest reading up about them here: http://en.wikipedia.org/wiki/Environment_variable

Python On Mac Os

If it can't find it in the directories specified by the PYTHONPATH envi var it then defaults to the sys.path var which is installation dependent.

What the maintainer of lighthouse is doing (I think) is symlinking these files from whatever directory he downloaded them to into his installation default directory. You can quickly figure out what this directory is by running the python interpretor and looking at the sys.path var:

You can see that /usr/local/lib/pthon2.6/dist-packages/ is the folder all the modules are in. I believe this is where the maintainer is symlinking his files. THIS IS NOT A GOOD IDEA. You shouldn't modify this directly.

The better approach is to simply download the files and place them in the same directory as your script, or you should place them in a directory and add that directory to the PYTHONPATH environment var.

Jordan MessinaJordan Messina

Manual Install Of Python Package Mac Os 10

1,0611 gold badge13 silver badges24 bronze badges
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Running Python On Mac

Not the answer you're looking for? Browse other questions tagged pythonpackagespip or ask your own question.