anacondapackageinstallationoffline

Anaconda install packages without connection


I am trying to install packages for anaconda offline

I am behind a company network, i have no possibilities to use conda install or pip install, I also cant create and custom environment.

I have already downloaded plotly....tar.gz and others.

Is there any way to install packages completly offline?

conda install C:/Users/xxxxx/Desktop/python packages/plotly-4.5.0.tar.gz --offline

I already tried some manuals but i get errors like Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

Any help would be very nice


Solution

  • Solved! This is working behind a company proxy. Here with plotly as an example:

    1. Download package from https://repo.anaconda.com/pkgs/main/noarch/ to some folder. Example: we'll download plotly-4.4.1-py_0.tar.bz2 to folder C:\Temp\noarch\

    2. Open an anaconda terminal/prompt

    3. Navigate to that folder in the terminal (from Windows File Explorer, you can Shift + Right Click in a folder to Open in Terminal)

    4. Run conda install <package_filename>

    Example: C:\Temp\noarch>conda install plotly-4.4.1-py_0.tar.bz2