Closed tarankalra1 closed 2 years ago
You have two CuPy installed, one from PyPI and another from Conda-Forge. Could you remove one of them (ex: pip uninstall cupy-cuda114
) please?
Hi Leofang
thank you for your response. I uninstalled the pip version and that helped me get rid of the error. However, I don't think that the cuda py still works. I was testing it with this simple code.
import cupy as cp
x = cp.array([1, 2, 3])
that gives this error
File "check1.py", line 4, in <module>
x_gpu = cp.array([1, 2, 3])
AttributeError: module 'cupy' has no attribute 'array'
I dont have a file named cupy.py in the folder.
@tarankalra-usgs Your conda env is like corrupted due to the previous coexistence of multiple CuPy packages. Please retry with a fresh env.
I created a new environment now. I tried to install cupy again via conda.
conda install -c conda-forge cupy cudatoolkit=10.0
I get this error message now.
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.1
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
I have the python installed (python --version is python=3.1. Do you have any suggestions ?
Conda-Forge has recently deprecated support of Python 3.6, and older Pythons (2.7, 3.0~3.5) have been long unsupported.
In the original error report, it looks like Python 3.8 was being used. Could you please try creating an environment with Python 3.8?
@jakirkham and @leofang thank you for your suggestions. Yes, i was able to install cupy using python 3.8. thank you !
Issue: After installing cupy through conda forge when i try to import cupy. i get this error.
Environment (
conda list
):Details about
conda
and system (conda info
):