tasos-py / Search-Engines-Scraper

Search google, bing, yahoo, and other search engines with python
MIT License
513 stars 137 forks source link

Difficulties installing on Macbook Air macOS Big Sur M1 Chip #32

Open grumpyp opened 2 years ago

grumpyp commented 2 years ago

I recently switched to a Mac machine and having trouble to install the library here.

Maybe anyone can help out?


running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 2] No such file or directory: '/Library/Python/3.8/site-packages/test-easy-install-41837.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Library/Python/3.8/site-packages/

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).```
tasos-py commented 2 years ago

Sorry to hear that. I don't have a Mac, so I don't know if I can help much, but have you tried sudo? Your issue seems similar to this https://stackoverflow.com/questions/13973287/cant-create-or-remove-files-in-install-directory-difficulty-installing-pip and sudo worked for them.

And here is another SO post, more similar to your issue, https://stackoverflow.com/questions/14967032/error-when-installing-python-settuptools-no-such-file-or-directory-usr-loca