Problems installing pyperclip module for python. Not recognised as a module.
Not able to install it from command line. Resolved by running pip install pyperclip by running command line as administrator. (Right-click on command line icon in start menu and select "run as administrator").
Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts
Trouble Using Pip and Installing Openpyxl
Openpyxl is, according to Automate the Boring Stuff with Python, supposed to be a handy python library which allows programmers to use python programs with Microsoft excel sheets.
But first you need to install pip on your machine.
What is pip?
The first difficulty I had was getting pip to work through my command line. I resolved that issue using paths - as described in this video (https://www.youtube.com/watch?v=Jw_MuM2BOuI).
The next issue I had was with installing openpyxl itself (which you need pip to do). I received the following error:
Eventually, I found a solution on stackoverflow, which suggested using the following:
But first you need to install pip on your machine.
What is pip?
"Pip is a package manager for python packages. A package contains all the files you need for a module. Modules are Python code libraries that you can include in your project". - W3 schools.
The first difficulty I had was getting pip to work through my command line. I resolved that issue using paths - as described in this video (https://www.youtube.com/watch?v=Jw_MuM2BOuI).
The next issue I had was with installing openpyxl itself (which you need pip to do). I received the following error:
"Could not install packages due to an EnvironmentError: [Errno 13] Permission denied:"
"Consider using the `--user` option or check the permissions"
Eventually, I found a solution on stackoverflow, which suggested using the following:
This worked.python -m pip install --user openpyxl
Subscribe to:
Posts (Atom)
Web Development: Organizing Files and Folders
When you begin to build your website, it's a very clever idea to organize your files and folders efficiently. You should have: A ...
-
Continuing our journey through Automate the Boring Stuff with Python's excel lessons, we came across the get_column_letter and column_in...
-
What are the meanings of the various types of averages in datasets? Mean == the "centre" ("center") of a dataset. ...
-
First, a warning. Don't get mixed-up between finding the percentage of x in a list and finding a percentile of x. I've already co...