1

I am new to Python and am trying to pip install the pandas, numpy and a few other libraries, but it won't work.

My method is:

go to command prompt and type python -m pip install pandas --user - I have also tried every other way like pip install etc. Each time i do it it just says syntax error. Solutions?

Thank you.

4
  • 2
    which error it's showing? Commented Oct 4, 2018 at 8:20
  • 2
    which os (windows?) and python version you're using? Commented Oct 4, 2018 at 8:20
  • 2
    Are you trying to use pip from within a python interpreter? Pip should actually be called from the command line, outside of python. Commented Oct 4, 2018 at 8:27
  • 1
    Please add your operating system info,the python interpreter and your admin privileges on your system Commented Oct 4, 2018 at 8:42

1 Answer 1

1

You should not use pip in python CLI. You must use pip in your system CLI like Windows powershell.

use command below to install packages :
pip install pachakge-name

for example:
pip install numpy scipy matplotlib pandas
Or you can do this one by one. Each package in single line of pip install

Sign up to request clarification or add additional context in comments.

2 Comments

thanks a heap mate ive been stuck on this for 2 days !
Your welcome. This kind of problem happens all the time. But after a short time you get how to solve. And please if your problem solved, accept the answer so the question could be closed. Good luck ;-)

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.