wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.11k stars 343 forks source link

"Could not build wheels for gdown" error on pip install gdown. #207

Closed rajdeep-biswas closed 1 year ago

rajdeep-biswas commented 2 years ago

Provide environment information

Using - /usr/local/bin/python Python 3.7.0

Error appears as below on pip install gdown -

Collecting gdown
  Downloading gdown-4.5.1.tar.gz (14 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: filelock in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from gdown) (3.0.12)
Requirement already satisfied: requests[socks] in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from gdown) (2.25.1)
Requirement already satisfied: tqdm in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from gdown) (4.62.3)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.11.1-py3-none-any.whl (128 kB)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from gdown) (1.15.0)
Collecting soupsieve>1.2
  Using cached soupsieve-2.3.2.post1-py3-none-any.whl (37 kB)
Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests[socks]->gdown) (2021.5.30)
Requirement already satisfied: chardet<5,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests[socks]->gdown) (4.0.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests[socks]->gdown) (1.26.2)
Requirement already satisfied: idna<3,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests[socks]->gdown) (2.10)
Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests[socks]->gdown) (1.7.1)
Building wheels for collected packages: gdown
  WARNING: Building wheel for gdown failed: [Errno 13] Permission denied: '/Users/I516992/Library/Caches/pip/wheels/3d'
Failed to build gdown
ERROR: Could not build wheels for gdown, which is required to install pyproject.toml-based projects

Where the last line ERROR: Could not build wheels for gdown, which is required to install pyproject.toml-based projects is of importance.

What OS are you using?

macOS 12.4 (21F79)

Describe the Bug

When attempting to use pip install gdown, an ERROR: Could not build wheels for gdown, which is required to install pyproject.toml-based projects appears and installation fails.

Expected Behavior

No response

To Reproduce

No response

pureexe commented 1 year ago

Got the same error with Python 3.9.15

wkentaro commented 1 year ago

@rajdeep-biswas looks like your environment requires to run it with sudo

image