Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jebediah2 opened this issue Oct 10, 2024 · 2 comments
Open

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

jebediah2 opened this issue Oct 10, 2024 · 2 comments

Comments

@jebediah2
Copy link

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
Copy link
Author

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?

@nabilfreeman
Copy link

Thanks Jebediah - damn I hate Python...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants