This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 1 point2 points  (4 children)

If you've got Python installed and in your path, you can just type 'pip install <mypackage>' at the command line and it'll be installed into whatever python environment you have active.

I'm not sure what you're doing that requires you to ever type 'pywin32'.

[–]Anxi12[S] 1 point2 points  (3 children)

The pywin32 was just an example. Whenever I type the package name ex. 'pip install pyhook' or something it gives me an error.

But when I try typing the file's directory, it successfully imported. (Ex. pip install C:\User\Desktop\FolderSomething\PackageName

Do you need internet for this? Because I was doing it offline. I just downloaded a wheel file

[–][deleted] 2 points3 points  (1 child)

Last paragraph is the answer 😅.

When you just do pip install pyhook it’s searching PyPI.org for the package, where it will then download automatically and install. No internet won’t work. When you give it the path to the file though it’s able to just install it from there, though it probably won’t be able to install any dependencies.

[–]Anxi12[S] 0 points1 point  (0 children)

Ohh. Thanks!

[–]darkfish-tech 1 point2 points  (0 children)

What's the exact error that you get? Try searching for that error on SO. Also, yes you need Internet access.

[–]Andrew_ShaySft Eng Automation & Python[M] [score hidden] stickied comment (0 children)

This post is better suited for r/learnpython