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

ImportError when trying to import pcg64 from numpy.random". #26748

Closed
Divyanshukukreti opened this issue Jun 18, 2024 · 1 comment
Closed

ImportError when trying to import pcg64 from numpy.random". #26748

Divyanshukukreti opened this issue Jun 18, 2024 · 1 comment
Labels
32 - Installation Problems installing or compiling NumPy

Comments

@Divyanshukukreti
Copy link

Steps to reproduce:

I am trying to import pcg64 from numpy.random in my Python script. Despite using the latest version of NumPy (version 1.22.0), I'm encountering an ImportError.

Error message:

ImportError                               Traceback (most recent call last)
Cell In[19], line 2
      1 from numpy.random import default_rng
----> 2 from numpy.random import pcg64

ImportError: cannot import name 'pcg64' from 'numpy.random' (C:\Users\HP\anaconda3\Lib\site-packages\numpy\random\__init__.py)

Additional information:

Also, I'm new in this business and doing it first time so please be concise it will help me in learning. As a beginner with NumPy, I'm unsure how to resolve this ImportError when importing pcg64 and others also.

@Divyanshukukreti Divyanshukukreti added the 32 - Installation Problems installing or compiling NumPy label Jun 18, 2024
@rkern
Copy link
Member

rkern commented Jun 18, 2024

It's capitalized and case-sensitive: PCG64, not pcg64.

@rkern rkern closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32 - Installation Problems installing or compiling NumPy
Projects
None yet
Development

No branches or pull requests

2 participants