Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install vnpy via python pip




vnpy - A framework for developing quant trading systems., it belongs to Classifiers:

- Natural Language :: Chinese (Simplified)
- Operating System :: MacOS
- Operating System :: Microsoft
- Operating System :: Microsoft :: Windows
- Operating System :: POSIX :: Linux
- Programming Language :: Python :: Implementation :: CPython
- Topic :: Office/Business
- Topic :: Office/Business :: Financial
- Topic :: Office/Business :: Financial :: Investment

When you know about this project and you want to new install vnpy to support your project or you get trouble as ModuleNotFoundError: No module named "vnpy" or ImportError: cannot import name "vnpy" in your project, let follow this tutorial to install vnpy



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_vnpy_env

- Active the virtual environment

test_vnpy_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_vnpy_env

- Active the virtual environment

source test_vnpy_env/bin/active


Step 2: OK, now, let flow below content to start the installation vnpy

To install vnpy on Windows(CMD):

py -m pip install vnpy

To install vnpy on Unix/macOs:

pip install vnpy


Step 3: If you want to install a specific vnpy version, add ==<vnpy version> to the end command line

Example:

pip install vnpy==1.5


Please see the version list below table:

VersionReleased dateCommand
vnpy 3.3.02022-08-15T00:50:09Windows:

py -m pip install vnpy==3.3.0

Unix/macOs:

pip install vnpy==3.3.0

vnpy 3.2.02022-06-26T05:20:13Windows:

py -m pip install vnpy==3.2.0

Unix/macOs:

pip install vnpy==3.2.0

vnpy 3.1.02022-05-12T12:03:24Windows:

py -m pip install vnpy==3.1.0

Unix/macOs:

pip install vnpy==3.1.0

vnpy 3.0.02022-03-18T06:29:58Windows:

py -m pip install vnpy==3.0.0

Unix/macOs:

pip install vnpy==3.0.0

vnpy 1.9.22018-12-29T02:21:27Windows:

py -m pip install vnpy==1.9.2

Unix/macOs:

pip install vnpy==1.9.2

vnpy 1.9.12018-11-19T04:04:14Windows:

py -m pip install vnpy==1.9.1

Unix/macOs:

pip install vnpy==1.9.1

vnpy 1.9.02018-08-13T05:54:41Windows:

py -m pip install vnpy==1.9.0

Unix/macOs:

pip install vnpy==1.9.0

vnpy 1.8.02018-02-22T05:32:37Windows:

py -m pip install vnpy==1.8.0

Unix/macOs:

pip install vnpy==1.8.0

vnpy 1.7.32018-01-20T04:10:34Windows:

py -m pip install vnpy==1.7.3

Unix/macOs:

pip install vnpy==1.7.3

vnpy 1.7.22017-12-08T08:55:11Windows:

py -m pip install vnpy==1.7.2

Unix/macOs:

pip install vnpy==1.7.2

vnpy 1.7.02017-09-03T13:30:55Windows:

py -m pip install vnpy==1.7.0

Unix/macOs:

pip install vnpy==1.7.0

vnpy 1.6.22017-06-01T15:47:56Windows:

py -m pip install vnpy==1.6.2

Unix/macOs:

pip install vnpy==1.6.2

vnpy 1.52017-03-07T15:08:49Windows:

py -m pip install vnpy==1.5

Unix/macOs:

pip install vnpy==1.5


Step 4: Otherwise, you can install vnpy from local archives:

Download the distribution file from vnpy-3.3.0.tar.gz or the specific vnpy version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_vnpy_downloaded_file>

On Unix/macOs:

pip install <path_to_vnpy_downloaded_file>


List distribution:


Project link:

- Homepage
- Documentation