0

Have a bit of an issue here. I haven't got admin access to my work computer (working on getting it) so I can't install packages. IT has given me a temporary Admin password but Admin doesn't have internet access.

So I have to download the library itself. I went to https://github.com/scikit-learn-contrib/imbalanced-learn.git and downloaded "imbalanced-learn-master.zip"

My question now is - how do I install this on my computer locally? I can "Run as Administrator" anything from the command prompt

2
  • 1
    Does this answer your question? Python Packages Offline Installation Commented Dec 23, 2019 at 12:44
  • Just a comment since this is not answering directly to your question but you can install miniconda and then you can manage it a user level (still require internet) without the admin rights. Then whatever package can be installed with conda install <package-name>. Commented Dec 23, 2019 at 13:50

2 Answers 2

1

First. How You install packages. If from command line then you can use --user switch then command will look

pip install --user imbalanced-learn

Other option is to install from wheel file. So download: https://files.pythonhosted.org/packages/eb/aa/eba717a14df36f0b6f000ebfaf24c3189cd7987130f66cc3513efead8c2a/imbalanced_learn-0.6.1-py3-none-any.whl and then

pip install imbalanced_learn-0.6.1-py3-none-any.whl 

or without admin privileges

pip install --user imbalanced_learn-0.6.1-py3-none-any.whl 

Third option is to install from source (as you asked). You need to unpack zip file and in terminal go to main folder (with setup.py) and then

pip install . 

But you also need to install package dependencies. You can found them in setup.py For current master it is

INSTALL_REQUIRES = [
    'numpy>=1.11',
    'scipy>=0.17',
    'scikit-learn>=0.22',
    'joblib>=0.11'
]
Sign up to request clarification or add additional context in comments.

11 Comments

I've been trying the "pip install ." and this is what I see: "Processing c:\temp\imbalanced-learn-master Requirement already satisfied numpy, requirement already satisfied scipy, collecting scikit-learn". Then it tries to connect to the internet and under admin there is no internet. So is my problem, I have an outdated scikit-learn and need to update that library prior to the imbalanced library?
Or you may not have installed it. Yo may download it from pypi.org/project/scikit-learn/#files
just checked using "pip list" and returns skikit-learn 0.21.2
So version is to low.
Yes, you need to get scikit-learn 0.22. It is available on PyPI and conda-forge.
|
0

You need to use the pip (or any package installer) through your corporate proxy.

pip install package_name --proxy=http://corporate-proxy.company_website.com:8080

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.