scikit-image crashes with windows fatal - scikit-image

Hi I want to inpaint the following image, using scikit-image.
On my environment with python 3.8, scikit-image 0.18.3 and numpy 1.21.1 all is fine.
On my environment with python 3.10, scikit-image 0.19.2 and numpy 1.22.3 I get
windows fatal exception: code 0xc0000374 with no other error.
Any ideas where to look for?
Edit: I tried on the 3.10 python and downgrade scikit-image to 0.18.3 and it works. So it must be related to that.

Related

No matching distribution found for PySide2

I get this error when trying to install PySide2 from the Mac's Terminal:
ERROR: No matching distribution found for PySide2
I checked to make sure I have only 1 installation of Python on my MacBook. The screen shot shows the commands I used to check where Python is located and the recommended command I've seen online. I also have the latest version of pip and Python installed. I need PySide2 for PySimpleGUIQt. I also tried home brew, but it also couldn't locate PySide2, but found something called PySide#2 which I don't know if that's another name for PySide2.
It's cause you have python newest then pyside2 support. I try to install pyside2 on python 3.10 (3.9 same error) and get this error.
Proof:
But in 3.8 it's worked (but on Pypi https://pypi.org/project/PySide2/ it's must work and on 3.9 and 3.10)

ModuleNotFoundError: No module named 'skimage' when already installed new version scikit-image

I want to ask that I face the problem:
ModuleNotFoundError: No module named 'skimage'
even though I have already pip3 install scikit-image.
1
my version is Python 3.7.2
and when typing pip3 list, the version is:
scikit-image 0.17.2
Does any one know how to solve this problem?
Thank you very much
scikit-image and scikit-learn are two different packages. The latest scikit-image version is 0.17.2. Are you sure you have installed scikit-image?
It also depends wether you are on a Anaconda plateform or a local python platform in your computer (c:\User....). If python is installed directly in your computer outside Anaconda, this error may occur when importing the scikit-image library. In such case, you should re-install the scikit-image library from the Anaconda plateform by typing the command 'conda install scikit-image' from the Ananconda prompt or terminal.

Importing tensorflow_datasets

I am trying to import tensorflow_datasets to load a data set, but I found that I should install tensorflow_datasets using either pip or conda. I installed it twice using both methods. But tensorflow_datasets do not still work in jupyter notebook. In the last attempt I got the following error:
ImportError: cannot import name 'kwarg_only' from 'tensorflow.python.util.tf_export'
Plus
Failed to import TensorFlow. Please note that TensorFlow is not installed by default when you install TensorFlow Datasets. This is so that users can decide whether to install the GPU-enabled TensorFlow package. To use TensorFlow Datasets, please install the most recent version of TensorFlow, by following instructions at https://tensorflow.org/install.
While I have TensorFlow installed. I searched the net but none of the solutions solved the problem. Any help is appreciated.
Try to create a separate environment and then install tensorflow and tensorflow_datasets using pip install tensorflow==2.0.0 and pip install tensorflow_datasets==2.1.0. Its works fine.

Using numpy and scipy from Anaconda in xcode on a mac

I want to use the numpy and scipy Python libraries in combination with Xcode on my Mac, but do not get it up and running.
I use:
macOS High Sierra
Xcode 9.2
a local programming environment for Python 3.6
And I am able to run pure (no additional libraries) Python code in that environment without any problems. Now I also want to use numpy/scipy functionality and therefore installed Anaconda 3 on my machine. But when I try to run the following simple code in Xcode:
import numpy as np
a = np.arange(1, 10)
print(a)
I get the following error message:
File "/Users/oliverewald/Python/Python/Work.py", line 1, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'
Program ended with exit code: 1
Somehow the libraries that came with the Anaconda installation are not known/available in my local Python environment.
What am I missing? How can I get it running?
Modules installed in the Anaconda environment work only within the environment. I no longer have a working Mac to check this with, but I think you can enter the Anaconda environment from within Xcode.
The other option (without using Anaconda) is to use Python's pip to install the modules in the Python 3.6 environment.

Which python platform is suitable for tensorflow

I downloaded the TensorFlow into Pycharm's environment, python 3.6, and I get the following error:"tensorflow-1.0.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform"
I wanting to know please which platforms support the TensorFlow?
You should use Python 3.5 for this: "TensorFlow only supports version 3.5.x of Python on Windows." (https://www.tensorflow.org/install/install_windows).
How did you try to install TensorFlow? Have you used Anaconda?
If so, try creating an environment which uses Python 3.5:
conda create --name tensorflow python=3.5
(Taken from Installing tensorflow with anaconda in windows)

Resources