We want to use supercomputers to implement Pennylane applications, but we cannot connect to the Internet, so how to install pennylane? When downloading offline installation from github, some dependent packages still need to be installed online. Is there a packaged pennylane that can be installed offline directly?
Hey @zj-lucky! If I understand correctly, by installing pennylane “offline” you mean that you’ve cloned the pennylane github repo and are installing pennylane like
pip install -e .? If so, yes you will need to have an internet connection to be able to do this. As you stated, pennylane depends on several packages and those need to be installed as well.
However, there is a way around this, but you will need to have access to the internet on a different machine first . Let me explain.
- On a computer with access to the internet, you can download pennylane to a specific folder:
pip download pennylane -d /path/to/packages/. This will stick pennylane and its dependencies in the folder
/path/to/packages/. The files that will be there are
- Move that folder with all of the
.whlfiles to the “offline” computer.
- On the “offline” computer, install those packages:
pip install pennylane --no-index -f /path/to/packages/.
Let me know if that works for you!