Comments (18)
Unfortunately there are only 2.7 binary wheels for native OS X. This works both for the system Python and the official Python.org distribution. There are binaries for 3.5 for the Anaconda Python distribution.
The OS X wheels are too big for pipy. According to the PEP, the "intel" wheel tag indicates that the binary should be a "fat" binary containing both the i386 and x86_64 architectures. This is what makes the binary 2X bigger that other platforms.
We had been using the a Download URL, to reference the source forge links. But pip no longer supports this feature.
There have been some nice advances with pip regarding the OS X and wheel support in the past year, which enabled multi-versions of OS X to easily work. I have been hoping that pip would learn that "x86_64" is compatible with "intel" so that correctly labels wheels can be produced and i386 can be dropped in the fat binary.
There is a coming release where we will include Python 3.5 of OSX.
from simpleitk.
Can I ask about status on this? I'm considering using SimpleITK for image registration over at the Hyperspy community, but a fair number of us are using Macs, and it wouldn't make sense to begin development if we can't use it as a dependency.
Would conda work instead of pip?
from simpleitk.
We expect that for the 1.0 release we will be able to get the extra space needed with the new warehouse backend for pipy, and everything should work well with pip install SimpleITK
. Currently you have to jump through a couple command line argument hoops to get the package:
$ pip install --trusted-host itk.org -f https://itk.org/SimpleITKDoxygen/html/PyDownloadPage.html SimpleITK
There are some problems we are trying to work on with condo-forge, but we have the binaries up on conda.anaconda.org, so the following works:
$ conda install -c https://conda.anaconda.org/simpleitk SimpleITK
Details for obtaining SimpleITK on a variety of platforms is on the wiki. We currently working on improving this for the upcoming 1.0 release, we tagged v1.0rc1 just last week.
from simpleitk.
After further research, I create a OS X wheel name: SimpleITK-0.10.0.post3-cp27-cp27m-macosx_10_6_x86_64.whl
This has been uploaded to PyPi, and now "pip install SimpleITK" works for OS X Python 2.7 too.
Enjoy!
from simpleitk.
from simpleitk.
There were no binaries release form 1.0rc1. I expect to release wheels for r2, and wheels and anaconda packaging for rc3.
If you would like to test with Anaconda please try the Anaconda Recipe:
https://github.com/SimpleITK/SimpleITKCondaRecipe
from simpleitk.
Hi, is this working for OS X Sierra? pip seems to download 0.8.0 only. When I specify a specific wheel, I get a SimpleITK-0.10.0-cp27-cp27m-macosx_10_6_intel.whl is not a supported wheel on this platform.
. I'm using pyenv
, if that's relevant.
from simpleitk.
from simpleitk.
I'm using pip 9.0.1
from simpleitk.
This still sound like the behavior of an older version of pip. Perhaps if you invoke pip with:
python -m pip install SimpleITK
The expected behavior will occur.
from simpleitk.
So I figured out that my system was having trouble linking the proper pip executable. I'm now using the right pip version, but importing SimpleITK gives me a Fatal Python error: PyThreadState_Get: no current thread
.
Does that mean pip had trouble building some C/C++ whose errors I am not aware of?
from simpleitk.
This was a problem with non-system python installations on OSX several versions ago. Please update to the latest SimpleITK 1.0 binary. This should be able to be done from a functional Python installation at the command prompt with:
'''
python -m pip install -U SimpkeITK
'''
from simpleitk.
❯ python -m pip install -U SimpkeITK
Collecting SimpkeITK
Could not find a version that satisfies the requirement SimpkeITK (from versions: )
No matching distribution found for SimpkeITK
I noticed I still have 0.8.0 by the way. Not sure why pip can't find the later versions.
from simpleitk.
What python are you trying to use?
from simpleitk.
python 2.7.12
from simpleitk.
Who is the distributor or vender?
from simpleitk.
pyenv 1.0.10.
$ which python
/Users/jerome.indefenzo/.pyenv/shims/python
$ which pip
/Users/jerome.indefenzo/.pyenv/shims/pip
$ pip install simpleitk
Requirement already satisfied: simpleitk in /Users/jerome.indefenzo/.pyenv/versions/2.7.12/lib/python2.7/site-packages
$ pip install simpleitk==1.0.0
Collecting simpleitk==1.0.0
Could not find a version that satisfies the requirement simpleitk==1.0.0 (from versions: 0.8.0)
No matching distribution found for simpleitk==1.0.0
from simpleitk.
The system python version on my OS X Sierra is "Python 2.7.10". I believe you are not using the system python, and the python you are using was obtained from another distributor such as Anaconda, Enthought, Homebrew...?
What information is printed when you run python as an interactive interpreter:
python -i
python -c "import distutils.util; print(distutils.util.get_platform())"
Perhaps you are somehow running 32-bit Python? Then the following binary may work:
https://sourceforge.net/projects/simpleitk/files/SimpleITK/1.0.0/Python/SimpleITK-1.0.0-cp27-cp27m-macosx_10_6_intel.whl/download
It is also possibly you installation of python and pip have gotten corrupted since it appears not to be behaving as expected.
from simpleitk.
Related Issues (20)
- Extend sitk.ReadImage()/WriteImage() to support pathlib.Path() HOT 1
- add or change the interface for the ImageRegistraitonMethod.SetOptimizerAsAmoeba method HOT 1
- Error writing `SimpleITK Image` to DICOM files HOT 1
- GetBufferAsType functions missing (Python 3.12.1, SimpleITK 2.3.1) HOT 8
- PEP 688 add buffer protocol support
- After registration, is the order of transforms composition specified in the documentation correct? HOT 4
- `MetaData dictionary key must be str`? HOT 2
- simpleITK python acts differently while reading metadata with upper or lower case hexadecimal label HOT 5
- Figure illustrating image concepts doesn't have clear text HOT 5
- ThresholdImage filter in Python HOT 2
- Add way to search docs
- Add docs on how to set/get the mask on an image HOT 1
- Provide reference documentation for transform parameters HOT 1
- Groupwise registration of 4D objects. Bad direction, determinant is 0. Direction is 1 0 0 HOT 1
- How to convert DisplacementFieldTransform to Image format and save it? HOT 1
- There was a problem merging two.NIIs into one
- There was a problem merging two.NIIs into one HOT 6
- Some special characters in metadata are truncated HOT 2
- Changing number of iterations per level of registration HOT 1
- Race condition in ErodeObjectMorphologyImageFilter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpleitk.