Skip to main content

A simple library for manager the numpy version to different python interpreters.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

two_numpy-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

two_numpy-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file two_numpy-0.1.0.tar.gz.

File metadata

  • Download URL: two_numpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for two_numpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6c21f5016dc258a85a1cd5137feceb49b1c8405a348c4f697c3cf5f0b3027f5a
MD5 138d710f215bed227c8c5c84dd562418
BLAKE2b-256 8df1e3c65c8723db2c2141362a95be59d76df5b301b055e2be3e9f6f41f1ec1c

See more details on using hashes here.

File details

Details for the file two_numpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: two_numpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for two_numpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 120039456000ea761b2a9c4ee0132f9ed653e59616224b64fecaac779751d44f
MD5 324550265e386a593c8a17b629c79fa6
BLAKE2b-256 6da70a3b14a4f7bf3edb88b6f2cdf15df8eab242edaad1a761e559b2392e1fd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page