0

I have already installed pyscipopt.

I type pip install pyscipopt in command prompt.

I also can run my script using IDLE (Python 3.6 64-bit).

But when I want to run it using command prompt, I got ModuleNotFoundError. It said that "No module named 'pyscipopt'".

Maelig
  • 2,046
  • 4
  • 24
  • 49
NAM
  • 3
  • 2
  • which version did you install, for python 2 or 3? and which version is running from cmd..100% sure you are running the wrong version ;) – NemoMeMeliorEst Sep 25 '19 at 07:59
  • Yes, you are right. I didn't realize it. Thank you so much for the answer! :) – NAM Sep 25 '19 at 09:06

1 Answers1

1

You probably have more than one versions in your PC. So when you run pip install,the default version will install pyscipopt instead of 3.6.

Try this:

C:\>path\to\python3.6.exe -m pip install -U pyscipopt
Alex
  • 1,816
  • 5
  • 23
  • 39
  • 1
    I didn't realize I have two versions in my PC. It has been resolved. Thank you so much! – NAM Sep 25 '19 at 09:08
  • Please accept my answer so it can help others see it too :) – Alex Sep 25 '19 at 09:14
  • Also, make sure to use virtual environments whenever possible. They make handling dependencies and different python version a lot easier. – mattmilten Sep 25 '19 at 09:17