I wondered if Apple will make Python readily available for Sierra. I just upgraded but, really wish I had not as I have no means to return to El Capitan for gone are the days when we could all rule our own machines, and enjoy doing scripting progrms for our own entertainment such as Hypercard. When try to install OpenCV in Mac OS High Sierra by following tutorials in the internet, most probably you’ll end up with having errors related to permission denied while installation 4. Next lets install pip3 for python3. Unlike with normal brew python 2.7 installation, it won’t automatically install with python3.
When I try to compile NEURON on Mac OS High Sierra, I get In file included from./././src/nrnpython/grids.c:9:./././src/nrnpython/grids.h:10:10: fatal error: 'Python/Python.h' file not found #include ^ I have a feeling this has something to do with High Sierra. I can't find Python/Python.h on my system. There was also a similar issue in MacVim it seems: What's also a bit strange, is that I get: In file included from./././src/nrnpython/rxdvol.c:3:./././src/nrnpython/grids.h:10:10: fatal error: 'Python/Python.h' file not found although I use '-disable-rxd', is this expected? From grids.h I see #ifdef APPLE #include #else #include #endif So it seems that apple has changed its ways in High Sierra.
I have not yet installed that OS. I suspect that the solution will be to modify the ifdef to take into account the OS version. It could get confusing given all the python packages that are available. The option is -disable-rx3d Do not compile the cython translated 3-d rxd but even that does not affect the compilation of grid.c which is not a part of the 3-d specific cython stuff.
In the usr/bin folder, there are three versions of Pythons installed: Python, Python2.6, Python2.7 (the folder names) - not sure what version is for Python folder. My issue, originally, was that I tried to install the module 'pandas' to run a script, python keeps telling me pandas could not be found. 'pip freeze' shows me pandas is already installed. However, I could not find pandas using pythonhelpmodules. So I suspected there are multiple pythons installed causing pip installing for one of them, but the default python is a different one. So my questions are - 1 Which python is the default one that comes with macOS Sierra? (I can confirm pandas currently is installed for Python, not Python2.6 or Python2.7) 2 Can I remove extra Pythons that do not have pandas?
![Latest Python For Mac High Sierra Latest Python For Mac High Sierra](/uploads/1/2/5/3/125355229/362751474.jpg)
3 How can I find what it the default Python when I type 'Python.' And how to install pandas for that python? Solved: Thanks for the comments and reply. I used 'python2.7 install pip' to install pip for python2.7. Then I used command 'pip2.7 install pandas'.
This way, pandas is installed for the default python. (The command 'pip install pandas' on my machine, is installing for python 2.6.). macOS Sierra uses Python 2.7 by default. You can uninstall a version of Python as described.
![Mac Mac](/uploads/1/2/5/3/125355229/461915154.jpg)
However, you shouldn't need to as long as you are managing your packages and environments. If you want to maintain more control over your projects and their packages/versions, you should take a look at. Virtualenv creates environments that have their own installation directories that don't share packages with other virtualenv environments. This is a very popular option many people use when managing projects. You can use pip -version to see which version of Python you are installing a package for. You can also use pip list to see which packages are currently installed. I highly recommend taking a look at virtualenv as it'll make keeping track of Python environments and their respective packages a lot easier.
Hope this helps!