[Ndn-lib] python version

Alex Afanasyev alexander.afanasyev at ucla.edu
Wed Oct 9 00:40:41 PDT 2013


Hi Xiaoke,

There is another solution which may or may not be more appropriate for you.  If you primarily use macports version of python, then it would be a good idea set it as a default python:

sudo port select python python27

(to set OSX version back:  sudo port select python python27-apple)

---
Alex

On Oct 7, 2013, at 8:53 PM, Derek Kulinski <takeda at takeda.tk> wrote:

> I believe the problem really is due to Xiaoke having multiple versions of python installed,
> but the PATH is configured that the Mac's default python is started.
> 
> The solution is to tell the configure script which python you are planning to use, for example:
> ./configure PYTHON=/opt/local/bin/python2.7
> 
> In place of /opt/local/bin/python2.7 put path to Python's binary that has the matplotlib installed.
> 
> Derek
> 
> On Mon, Oct 07, 2013 at 10:51:05AM -0700, Alexander Horn wrote:
>> I'm nearly certain PyNDN will work with 2.7.X / nearly anything before python 3. 
>> 
>> however, i'm no expert at resolving dependencies w/ macports.
>> 
>> 
>> On Oct 7, 2013, at 7:02 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
>> 
>>> Dear all,
>>> 	Now I am using python API of NDNx. However, there is a problem,
>>> 	pyndn is installed with python2.7.2(default), another lib I need (matplotlib installed by macports) is installed with python2.7.5. What can I do in order to import pyndn and matplotlib at the same time?
>>> 
>>> thanks
>>> 
>>> My Regards,
>>> Xiaoke (Shock) Jiang (蒋小可)
>>> 
>>> Ph.D. Candidate,
>>> Department of Computer Science and Technology,
>>> Tsinghua University, Beijing, P.R.China. 100084
>>> _______________________________________________



More information about the Ndn-lib mailing list