- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which Python Version to use for pip install meraki
Hi there
I have Python 3.12.3 on a Ubuntu 24.04 VM.
I would like to install pip3 but Ubuntu gives me an error.
The error is "externally-managed-environment"
It says if I do want to install it then I can risk instaling it with --break-system-packages
And then it gives the hint of "See PEP 668 for the detailed specification"
What must I do to fix this or which Python version does not gives this error.
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sounds like you may be using the system's Python, to avoid causing the system problems it discourages making changes.
I suggest use pyenv to create a separate Python environment under your control, and use that for your Meraki/other development. See...
https://realpython.com/intro-to-pyenv/
...it has instructions for Ubuntu.
This is what I always do, I never use the system Python.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks so much bud! I really appreciate it! Have a great day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sudo apt install python3-pip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Philip! I will try that!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Phillip
I ran your command and the system told me that pip3 was already installed.
When I did a pip3 install pytube it still gives me an error.
I will have to try the virtual env
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try:
sudo pip3 install pytube
You don't usually need to use sudo when using this command.
Virtual env might be safer ...
