0

I cannot install the curses library in my Editor. Is there some other way to make sure I have the library installed and can import it?

I'm trying to build a tictactoe game using venv, in Pycharm Community Edition. I imported curses in the directory where my scripts are located using command prompt. I can import curses in IDLE editor. However, there is no package called curses in the Settings->Project Interpreter.

pip install curses‑2.2‑cp36‑cp36m‑win_amd64.whl

this throws an error:

Requirement 'curses-2.2-cp36-cp36m-win_amd64.whl' looks like a filename, but the file does not exist curses-2.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

Edited the configurations and checked the checkbox with emulate terminal in output console, still won't work.

Tajinder
  • 2,248
  • 4
  • 33
  • 54
mach3
  • 117
  • 1
  • 1
  • 6

1 Answers1

0

You should use:

pip install https://download.lfd.uci.edu/pythonlibs/n5jyqt7p/curses-2.2.1+utf8-cp37-cp37m-win_amd64.whl

The section of the pip command line installer:

cp37 == CPython 3.7

So you need the appropriate whl install file for your installed Python environment.

ode2k
  • 2,653
  • 13
  • 20
  • uh, it shows,Requirement 'curses-2.2-cp37-cp37m-win_amd64.whl' looks like a filename, but the file does not exist – mach3 Jul 22 '19 at 17:45
  • Added URL to install from since you don't have it downloaded. You can also download and install from local folder. – ode2k Jul 22 '19 at 18:34