0

I'm trying to install bayespy on enthought canopy and have read through all the documentation and cannot figure it out. I import pip and then run the following code (I have tried many variations on this too) :

pip install <bayespy>

It keeps coming back with an error message. Do I need to specify the file path to bayespy possibly?

Thanks in advance, Max

Edit :

pip install <bayespy>
  File "<ipython-input-2-bb1febf67aaf>", line 1
   pip install <bayespy>
          ^
SyntaxError: invalid syntax
8
  • 3
    do it at the command line, not inside python Commented Jan 20, 2017 at 21:44
  • What is the error message you're getting? Commented Jan 20, 2017 at 21:44
  • 1
    adding to @jeremycg, remove the angle brackets before issuing the command Commented Jan 20, 2017 at 21:51
  • 1
    @MKaye What's the error message? That would help bypass a lot of speculation. Commented Jan 20, 2017 at 21:52
  • 2
    command line means console/terminal on Linux/Mac or cmd.exe/powershell on Windows. Commented Jan 20, 2017 at 22:02

2 Answers 2

1

The most basic usage of "pip" is as a command-line tool. Try this from the command prompt (NOT within a Python shell):

pip install bayespy

or perhaps

sudo pip install bayespy
Sign up to request clarification or add additional context in comments.

Comments

0

First: BayesPy requires Python 3. Try This:

yourMachine> sudo pip3 install bayespy

Not this at python prompt: >>> sudo pip3 install bayespy

7 Comments

This doesn't work either and comes back with a SyntaxError, do I need to access the command line?
I am currently running in python
If BayesPy requires Python 3, you'd want to install it with pip3, not pip.
Oh I see, I have accessed the command prompt now, sorry for the dumbness...
I have tried above methods but says I need python 3, how do I install this (pip3 doesn't work @jwodder)
|

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.