Installition
In the version 3.X, binary installer (*.exe) is not provided anymore owing to the complex workflow and lost feature and performance.
We recommend you use the pip install to obtain all the advanced features.
System Required
Firstly, you should have already installed the python or conda virtual environment in your system.
Miniconda is recommended. And you should add the conda to your system environment variable.
In windows, you also need to install a terminal. git-windows or windows-terminal is recommended.
1. Create a new python virtual environment
PyNanoLab depend on th PySide6 to create its GUI. And it’s not compatible with the other PyQt package. So we highly recommend to install pynanolab to a new python virtual environment.
use following command in a terminal:
1 | conda create -n pnl python=3.13.2 |
Then, you should install Pytorch on this environment (Any version, you should select a version, GPU verison is more better).
For example:
1 | # CPU 版本 |
! warning: at windows, you should install hdbscan by manually compiling.
For example using conda
1 | conda install hdbscan -c conda-forge |
If using pip, you should have c/c++ compiler on your system.
Now, you have created a new python virtual environment and activated it.
The name is pnl, and you can change the name to anything you want, and the python version is specified to >=3.11. (We recommend >=3.13.x)
2. Install the pynanolab by pip
After version 3.x, we provide a pip package, you can directly install as general python packages.
If you can’t get the package from pip on your system, such as the Apple M1 or other Linux. You can tyr to search and download the wheel file from our Github release for your special OS.
1 | # online install |
Use the above command, the pynanolab will be installed automaticly. And a entry fille will be created in the Scripts folder of the “pnl” virtual environment. In windows is named “pynanolab.exe” and “pynanolab” in Linux and MacOSX.
Then, you can directily conduct the following command to open it in a terminal with pnl virtual environment activated.
1 | pynanolab |
If you want to create a shortcut or a desktop entry. Use the following command:
1 | pnl-shortcut |
3. Upgrade pynanolab
If you use the pip installtion. You can upgrade the packages manually using the following command:
1 | pip install --upgrade pynanolab |
For binary installation, such as the .exe in windows. If we don’t provide a new exe file in the sourceforge. You can manually download the *.whl file for your system from pypi or GitHub. Then, you can unzip the *.whl file use any compressed software (such as 7zip in Windows or unzip in Linux). And you will find the pynanolab folder in the archive. Delete the same “pynanolab” folder in the PATH that you installed the PyNanoLab and replace with the new package in the archive.