Posts: 9
Threads: 2
Joined: Jun 2018
Jun-13-2018, 01:46 AM
(This post was last modified: Jun-13-2018, 01:47 AM by martyl.)
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.
Posts: 12,033
Threads: 486
Joined: Sep 2016
Jun-13-2018, 02:18 AM
(This post was last modified: Jun-13-2018, 02:18 AM by Larz60+.)
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
Posts: 9
Threads: 2
Joined: Jun 2018
Jun-13-2018, 02:26 AM
(This post was last modified: Jun-13-2018, 02:26 AM by martyl.)
(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
Posts: 12,033
Threads: 486
Joined: Sep 2016
Jun-13-2018, 04:01 AM
(This post was last modified: Jun-13-2018, 04:01 AM by Larz60+.)
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.
Posts: 9
Threads: 2
Joined: Jun 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.
Posts: 12,033
Threads: 486
Joined: Sep 2016
If there is a wheel, you can use that, 'pip install wheel name'
for example, jdcal has: https://files.pythonhosted.org/packages/...ne-any.whl
Posts: 7,320
Threads: 123
Joined: Sep 2016
(Jun-13-2018, 01:46 AM)martyl Wrote: he last error message for Openpyxl was "permission denied: You most run cmd as Administrator.
Posts: 127
Threads: 3
Joined: Mar 2018
Jun-13-2018, 12:23 PM
(This post was last modified: Jun-13-2018, 12:23 PM by ljmetzger.)
(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-Par...er-Windows
Lewis
Posts: 9
Threads: 2
Joined: Jun 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-Par...er-Windows
Lewis
Thank you very much for the advice, let me try reinstalling Python.
Posts: 9
Threads: 2
Joined: Jun 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-Par...er-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!
|