• Advertisement
Sign in to follow this  

How can I install a module in Python (Read More)

This topic is 700 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can I install python in an offline computer? I can't use pip or easy install since I have no connection in my pc. However I can download modules using my phone and transfer the file to my computer, the thing is I don't know how can I install/use that transfered file on Python. So do you know how can I use a manually downloaded module on python?

Share this post


Link to post
Share on other sites
Advertisement

If you grabbed the source code, just open it up, and run python setup.py install from the directory.If you grabbed an egg instead, it needs to go into the site-packages directory under your python installation.


I got a zip file it has a setup.py so I'm gonna try that tommorow. Thank you!

Share this post


Link to post
Share on other sites
One more question, just how exactly can I run that command from the directory? Maybe tell me how to do it step by step?

Share this post


Link to post
Share on other sites

Assuming you are on windows,

  • Open the directory in the windows explorer
  • Go to file menu
  • Choose Open Command Prompt

If the command doesn't work, make sure you have the python directory listed in your PATH variable.

Edited by Tanay Karnik

Share this post


Link to post
Share on other sites

Assuming you are on windows,

  • Open the directory in the windows explorer
  • Go to file menu
  • Choose Open Command Prompt
If the command doesn't work, make sure you have the python directory listed in your PATH variable.
How about the module (setup.py) is it okay if I have the folder in my desktop or should I add it to my paths too? Or there's a specific location that I should put the setup.py?

Share this post


Link to post
Share on other sites

Assuming you are on windows,

  • Open the directory in the windows explorer
  • Go to file menu
  • Choose Open Command Prompt
If the command doesn't work, make sure you have the python directory listed in your PATH variable.
That was what I was doing before I even asked but I always get an error saying that setup.py about it not being found in the directory/file or something similar. So how can I fix these? Also thanks for the previous answers.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement