Skip to content

Locked-chess-official/two_numpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Two numpy

This is the module that ensure that you import the right version of numpy.

In python3.13, there are two python interpreters, different interpreters have different numpy versions.

This module will help you to import the right version of numpy.

Install

pip install two_numpy

Usage

It will import the right version of numpy based on the python interpreter you are using.

from two_numpy import np

You can also use it like this:

import two_numpy
two_numpy.np

You can also set the version of numpy you want to use:

import os
os.environ["NUMPY_VERSION"] = "2.2.0"
from two_numpy import np

Tips: can only set the official version of numpy, such as "2.2.0", "2.2.1" and so on.

Don't set the other version of numpy, such as "2.2.0.dev0", "2.2.0rc1" and so on.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages