Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use default Python while having Anaconda

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?

like image 968
JNevens Avatar asked Oct 03 '17 17:10

JNevens


People also ask

Can I use both Python and Anaconda?

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.

How do I make Python default to Anaconda?

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.

Does Anaconda install Python by default?

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.

What is the default Python version in Anaconda?

Anaconda supports Python 3.7, 3.8, 3.9 and 3.10. The current default is Python 3.9.


1 Answers

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.

like image 195
igrinis Avatar answered Sep 17 '22 15:09

igrinis