0

as per autokeras website I am trying to install auto keras

I run this command

pip install autokeras

on Python 3.7.0 command prompt but I am getting this error

>>> pip install autokeras
  File "<stdin>", line 1
    pip install autokeras
              ^
SyntaxError: invalid syntax

what is wrong and how to fix it?

soerface
  • 6,417
  • 6
  • 29
  • 50
asmgx
  • 7,328
  • 15
  • 82
  • 143
  • According to the linked website it only works with Python 3.6 – Sebastian E Sep 22 '18 at 07:01
  • 2
    `pip` is not a python command. It's a CLI tool. Run it in your shell. – Eli Korvigo Sep 22 '18 at 07:02
  • @EliKorvigo i tied from windows command prompt but got this error 'pip' is not recognized as an internal or external command, operable program or batch file. – asmgx Sep 22 '18 at 07:03
  • @SebastianE it doesn't have anything to do with Python itself (and 3.7 is backwards compatible with 3.6). – Eli Korvigo Sep 22 '18 at 07:06
  • 1
    @asmgx which means you don't have it installed. It requires installation. – Eli Korvigo Sep 22 '18 at 07:07
  • @EliKorvigo i did install it, i downloaded get-pip.py and installed it using python get-pip.py and it was successful – asmgx Sep 22 '18 at 07:12
  • I got it working. i used this link it helped https://matthewhorne.me/how-to-install-python-and-pip-on-windows-10/ – asmgx Sep 22 '18 at 07:23
  • You should consider installing miniconda and using virtual environments to save yourself a lot of trouble in the long run. – Eli Korvigo Sep 22 '18 at 07:31
  • @EliKorvigo i have anaconda, but how can i use it to install pip? – asmgx Sep 22 '18 at 07:33
  • https://stackoverflow.com/search?q=%5Bpip%5D+SyntaxError – phd Sep 22 '18 at 08:09
  • @asmgx `conda create -n my_new_environment python=3.7` creates an environment called "my_new_environment" with `pip` out of the box. You can then activate this environment (on a Unix-like OS) by executing `conda activate my_new_environment` or `source activate my_new_environment ` depending on your conda version and configurations. I would think it shouldn't be significantly different on Windows. – Eli Korvigo Oct 01 '18 at 15:01

0 Answers0