For development in Python, I am using Miniconda on my Mac with macos Sierra. However, I have to use a framework that only works with the default Python (present at /usr/bin/python
).
My question is: How can I install packages for this default Python? If I use pip some-package
, this will automatically install the package for the root conda environment.
EDIT: As discussed in the comments, I agree it is a bad idea to mess with the system default version of Python. Instead, I would like this SDK to work in a conda environment or with Python 2.7 installed from python.org. However, none of these seem to work! How to get this working?
Anaconda comes with its own virtual environment manager conda . This means that Anaconda will by default be independent of your system python 3.7, and packages will not interact with each other. One solution to manage both python installs in a clean way could be to use conda environments for both.
The lower window has the system variables. Scroll down until you find Path, select it, and click edit. In the screen that appears, update the path that is pointing to your original python.exe to the one that is in the anaconda path. Close any open command window for update to take effect.
The answer for you will be No. if you already had anaconda installed in your laptop, once you open it up you will realized you can install Python within the software. Anaconda will not only included Python, R also will be included.
Anaconda supports Python 3.7, 3.8, 3.9 and 3.10. The current default is Python 3.9.
You are not trying to install any package, you are trying to install very specific package pynaoqi
that require external SDK, that is compiled for the specific architecture. You should edit your question to reflect that.
According to what I saw on the Net, it is not a trivial task. First, make sure you have the version 2.5 of the SDK, that suits the MacOS version. Then, look at this script. As they say, in order to work the dynamic libraries should be renamed. By the way, you need 64-bit Python 2.7.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With