Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Installing cuDNN Python Module via pip install cudnn #1367

Open
ziyuhuang123 opened this issue Dec 4, 2024 · 0 comments
Open

Issue Installing cuDNN Python Module via pip install cudnn #1367

ziyuhuang123 opened this issue Dec 4, 2024 · 0 comments

Comments

@ziyuhuang123
Copy link

I encountered the following code in a project:

try:
    import cudnn
except ImportError:
    cudnn = None

To resolve the ImportError, I tried installing cudnn using the following command:

(base) D:\trash_can\dataflow_hopper\new-flash-attention>pip install cudnn

However, I received the following errors:

DEPRECATION: Loading egg at c:\users\hzy\anaconda3\lib\site-packages\turingas-0.1-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000204652BBB50>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it.'))': /simple/cudnn/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000204652A8750>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it.'))': /simple/cudnn/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000204652C7A90>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it.'))': /simple/cudnn/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000204652CD7D0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it.'))': /simple/cudnn/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000204652CD210>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it.'))': /simple/cudnn/
ERROR: Could not find a version that satisfies the requirement cudnn (from versions: none)
ERROR: No matching distribution found for cudnn

Can anyone help me understand why this happens? Is there a specific way to install cuDNN as a Python module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant