Python Forum
3rd Party Modules - Installing - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: 3rd Party Modules - Installing (/thread-10908.html)



3rd Party Modules - Installing - martyl - Jun-13-2018

Dear all,

I tried to download + install some 3rd party Python modules* using PIP, but everyone of the them failed.
It is really frustrating to install Python 3rd party modules.

The last error message for Openpyxl was "permission denied: 'c:\\program files\\python35-32\\lib\\site-packages\\jdcal.py".

Can anybody help please?
Is there any alternative way to download 3rd party modules ?


Thank you in advance.

Martyl

* such as Openpyxl, etc.


RE: 3rd Party Modules - Installing - Larz60+ - Jun-13-2018

How are you using pip?
Please post an example of how you try to load, and error messages received.
standard would be:
pip install jdcal
which is called from the command line, not from python shell


RE: 3rd Party Modules - Installing - martyl - Jun-13-2018

(Jun-13-2018, 02:18 AM)Larz60+ Wrote: How are you using pip?
Please post an example of how you try to load, and error messages received.
standard would be:
pip install jdcal
which is called from the command line, not from python shell


Hello Larz60+,

Thank you very much for your reply.

No, I didn't do it from Python shell, I did it using the DOS Command Prompt.
I issued "Pip install Openpyxl" command within the "Scripts" folder of
the Python directory
.

Recently I reinstalled Windows on my PC because of a PC problem, I remember I
succeeded in installing Openpyxl before I reinstalled Windows, at that time
I didn't use PIP, I did it using the Setup.py file. But now I can't remember the
steps I followed.

By the way, how did you issue the command? Which editor are you using?

Thanks
Martyl


RE: 3rd Party Modules - Installing - Larz60+ - Jun-13-2018

that's the correct command what was the error?
Since you reinstalled windows, did you also reinstall python?
I just reread your first post, permission denied means you're trying to install
in a restricted (to you) directory.


RE: 3rd Party Modules - Installing - martyl - Jun-13-2018

(Jun-13-2018, 03:59 AM)Larz60+ Wrote: that's the correct command what was the error?
Since you reinstalled windows, did you also reinstall python?

The last line of the error messages was "permission denied: 'c:\\program files\\python35-32\\lib\\site-packages\\jdcal.py".

Yes, I reinstalled Python.

Is there an alternative way to import 3rd party modules?

Thanks.


RE: 3rd Party Modules - Installing - Larz60+ - Jun-13-2018

If there is a wheel, you can use that, 'pip install wheel name'
for example, jdcal has: https://files.pythonhosted.org/packages/a0/38/dcf83532480f25284f3ef13f8ed63e03c58a65c9d3ba2a6a894ed9497207/jdcal-1.4-py2.py3-none-any.whl


RE: 3rd Party Modules - Installing - snippsat - Jun-13-2018

(Jun-13-2018, 01:46 AM)martyl Wrote: he last error message for Openpyxl was "permission denied:
You most run cmd as Administrator.


RE: 3rd Party Modules - Installing - ljmetzger - Jun-13-2018

(Jun-13-2018, 01:46 AM)martyl Wrote: The last error message for Openpyxl was "permission denied: 'c:\\program files\\python35-32\\lib\\site-packages\\jdcal.py".

It is probably a bad idea to install Python underneath the 'program files' folder. I agree with Lars60+ that you are probably trying to access a folder restricted to you. snippsat's suggestion to 'run as administrator' will probably work but you will probably have similar problems in the future.

My suggestion is to uninstall Python, and reinstall it exactly according to snippsat's excellent instructions (which include installing Python in 'c:\Python36' or equivalent): https://python-forum.io/Thread-Basic-Part-1-Python-3-6-and-pip-installation-under-Windows

Lewis


RE: 3rd Party Modules - Installing - martyl - Jun-14-2018

(Jun-13-2018, 12:23 PM)ljmetzger Wrote:
(Jun-13-2018, 01:46 AM)martyl Wrote: The last error message for Openpyxl was "permission denied: 'c:\\program files\\python35-32\\lib\\site-packages\\jdcal.py".

It is probably a bad idea to install Python underneath the 'program files' folder. I agree with Lars60+ that you are probably trying to access a folder restricted to you. snippsat's suggestion to 'run as administrator' will probably work but you will probably have similar problems in the future.

My suggestion is to uninstall Python, and reinstall it exactly according to snippsat's excellent instructions (which include installing Python in 'c:\Python36' or equivalent): https://python-forum.io/Thread-Basic-Part-1-Python-3-6-and-pip-installation-under-Windows

Lewis

Thank you very much for the advice, let me try reinstalling Python.


RE: 3rd Party Modules - Installing - martyl - Jun-15-2018

(Jun-14-2018, 01:20 AM)martyl Wrote:
(Jun-13-2018, 12:23 PM)ljmetzger Wrote: It is probably a bad idea to install Python underneath the 'program files' folder. I agree with Lars60+ that you are probably trying to access a folder restricted to you. snippsat's suggestion to 'run as administrator' will probably work but you will probably have similar problems in the future.

My suggestion is to uninstall Python, and reinstall it exactly according to snippsat's excellent instructions (which include installing Python in 'c:\Python36' or equivalent): https://python-forum.io/Thread-Basic-Part-1-Python-3-6-and-pip-installation-under-Windows

Lewis

Yes, I got Openpyxl imported this time!
This is after I reinstalled Python at c:\Python36-32.
You are right, I need it installed at c:\Python36-32. You and Lars60+ are both awesome,
thank you so much!