Package won't install
See original GitHub issueDescribe the bug
When I try to install globally using pip install lyricsgenius
, I get the following output:
Collecting lyricsgenius
Using cached https://files.pythonhosted.org/packages/9d/4e/8cd3ff464d5c08e745bfae7c8ea96e64a3584e248ed8b57b9c2d102150d1/lyricsgenius-1.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-kJMjH9/lyricsgenius/setup.py", line 21, in <module>
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kJMjH9/lyricsgenius/
Expected behavior A global pip install would work without errors.
To Reproduce Describe the steps required to reproduce the behavior.
- Open terminal
pip install lyricsgenius
Include the error message associated with the bug.
TypeError: 'encoding' is an invalid keyword argument for this function
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-kJMjH9/lyricsgenius/
Version info
- Package version: Latest
- OS: macOS
Additional context I’m coming from a Node background so this could easily be something I’m doing but I tried this with pipenv, virtualenv, global pip install, and on an AWS Cloud9 instance (to make sure my global pip isn’t muddied) and I got similar results each time so I’m thinking there could be an issue at play.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Package installation issues | PyCharm Documentation
The package cannot be installed because the package is not available in the repository that is supported by the selected package manager.
Read more >Problem Installing Packages in the RStudio IDE - Posit Support
If you are unable to install packages in the RStudio IDE, some common problems are outlined below: Are you able to install packages...
Read more >Rstudio can´t install any package. I´m a beginner. How to fix?
I am taking a Data Science course at Coursera using R. I installed version 4.0.2 of R for Windows 10 (x64), then R...
Read more >cannot install any packages - ERROR -https://packagesource
Please open Visual Studio > Tools > NuGet Package Manager > Package Manager Settings > Package Sources > check if any invalid package...
Read more >I am unable to install packages in R - Stack Overflow
Remove the file .Rhistory in directory C:\Users\javad\Documents\.Rhistory. Now try installing the package. This should solve your problem.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ya it looks like it installs just fine globally using
pip3
and then I can call it from the CLI so this is likely an issue I had with Python 2.x in whatever environment I was trying with each time.I think your issue may be coming from attempting to install the package using Python 2.7 and its corresponding version of pip.
I will update the
setup.py
file to explicitly raise an error when called via Python 2.xIf you have pip3 installed, try
pip3 install lyricsgenius
. Let me know how it works out for you.