Closed rohanjha123 closed 1 year ago
Ah, I was able to figure it out by directly editing my wheels folder, apologies for wasting your time!
Ah, I was able to figure it out by directly editing my wheels folder, apologies for wasting your time!
Hi @rohanjha123, thank you for opening this issue! Could you explain in more detail how you fixed it? I don't have access to Mac and would like to add your solution to README for Mac users and tag you as a co-author in the commit.
What do you think? 🙂
Thanks for reaching out @dimitryzub! The issue comes from the following line: Permission denied: '/Users/rohanjha/Library/Caches/pip/wheels/52/42'
. In my Mac, there was a directory in /Users/rohanjha/Library/Caches/pip/wheels/52
, but there was no /42
subdirectory. Furthermore, the package scrape-google-scholar-py
did not have permission to create this subdirectory inside the wheels
directory of my Mac. So, I manually went inside the wheels
directory, changed the system permissions to allow me to edit the wheels
directory and manually created the /42
subdirectory. The pip install worked after that!
@rohanjha123 Thank you for your thoughts 🙂
Could you tell if you used virtual environment when installing package for the first time? In other words, did you installed it globally or locally to virtual env?
I guess the CLI way of solving your issue could be by using:
sudo chmod -R a+w /Users/rohanjha/Library/Caches/pip/wheels
which will may grant write permission to all users for the specified directory and its contents.
So CLI commands could be like so:
$ python3.11 -m venv env # or just python3
$ source env/bin/activate
$ pip install scrape-google-scholar-py
# if error above:
$ sudo chmod -R a+w /Users/rohanjha/Library/Caches/pip/wheels
$ pip install scrape-google-scholar-py
Just wanted to share a few thoughts on that. Not really sure what might caused that issue.
I installed them globally! Thanks for the suggestions
Hi,
I'm using macOS Big Sur, python 3.11.1. Whenever I try to
pip install scrape-google-scholar-py
, all the requirements are satisfied but the wheels fail to build. I'm not sure what's happening, I've attached the error message below. I'd really appreciate any help, thanks!