Drovosek01 / adobe-packager

Script that allows to download portable installers of different versions Adobe software for macOS
1.3k stars 129 forks source link

Cannot install because of 'externally-managed-environment' error #90

Open jebediah2 opened 1 month ago

jebediah2 commented 1 month ago

macOS 10.15

If I open ccdl.command or Adobe Packager.command, then:

python3 found!
installing requests 2.28.2...
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.

[...]

If I run python3 ccdl.py then:

Trying to Install required module: tqdm

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.

[...]

I therefore set up a virtual environment, but then I am unable to perform the install, either for lack of knowledge or compatibility. Ideally I'd like to install adobe-packager without virtual environment.

jebediah2 commented 1 month ago

I managed to solve it within a virtual environment like so:

python3 -m venv ~/env Copy adobe-packager install files to 'env' folder, then: cd ~/env source bin/activate pip3 install requests pip3 install tqdm ./ccdl.py

The reason I installed the 'requests' and 'tqdm' modules is because, in addition to the externally-managed-environment error, I was getting ModuleNotFoundError: No module named 'requests'/'tqdm' errors

Is using a virtual environment mandatory? If not, how could I go about it?