See 
https://github.com/numenta/nupic/wiki/Build-and-Installation-FAQ#missing-pythonh-file

Sent from my MegaPhone

> On Sep 8, 2015, at 5:14 AM, 付亚静 <[email protected]> wrote:
> 
> I tried "git pull" and my local files are the newest. But the code can't run. 
> So I input command "python setup.py install --user" and get an error as 
> follows.
> ...
>   File 
> "/tmp/easy_install-C80eUH/numpy-1.9.2/numpy/distutils/command/build_src.py", 
> line 329, in build_extension_sources
>   File 
> "/tmp/easy_install-C80eUH/numpy-1.9.2/numpy/distutils/command/build_src.py", 
> line 386, in generate_sources
>   File "numpy/core/setup.py", line 432, in generate_config_h
>     
>   File "numpy/core/setup.py", line 42, in check_types
>     
>   File "numpy/core/setup.py", line 293, in check_types
>     
> SystemError: Cannot compile 'Python.h'. Perhaps you need to install 
> python-dev|python-devel.
> 
> then I tried:
> abc@abc-VirtualBox:/newdisk/nupic$ sudo apt-get install python-dev
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> python-dev is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 195 not upgraded.
> 
> But it still has the same error.
> 
> My OS is ubuntu 12.04, and I just want to update it. Should I just follow the 
> commands of  "installation" part 
> (https://github.com/numenta/nupic/wiki/Installing-and-Building-NuPIC#installation)?
> 
> 
> ------------------ 原始邮件 ------------------
> 发件人: "Richard Crowder";<[email protected]>;
> 发送时间: 2015年9月8日(星期二) 下午5:39
> 收件人: "付亚静"<[email protected]>;
> 主题: Re: How to update the newest NuPIC version
> 
> Hi,
> 
> The usual route is via 'pip install nupic' (local or system wide). In you 
> case, grabbing source from GitHub, could you try a 'git pull' to sync with 
> the main repository (and then follow the Readme and Wiki steps for building 
> and install).
> 
> Regards, Richard.
> 
> 
>> On Tue, Sep 8, 2015 at 10:31 AM, 付亚静 <[email protected]> wrote:
>> Hi NuPIC:
>>       I installed the NuPIC environment several monthes ago. And I wanted to 
>> update to the newest version. But I'm not familiar with git command. I tried 
>> to use the commands as follows.
>> 
>> abc@abc-VirtualBox:/newdisk/nupic>Git stash
>> abc@abc-VirtualBox:/newdisk/nupic>Git fetch origin
>> abc@abc-VirtualBox:/newdisk/nupic>Git diff master origin/master
>> abc@abc-VirtualBox:/newdisk/nupic>Git stash pop
>> 
>> The file nupic/VERSION shows it is version 0.3.0.dev0, but I find some files 
>> are still not same as the newest file in https://github.com/numenta/nupic. 
>> For example, the files in /nupic/examples/network are not the same.
>> 
>> Maybe it's not your duty to answer this kind of questions. But I really 
>> don't know who can help me to solve it. So hoping for your reply. Thank you 
>> so much.
>> 
>> Yajingfu
> 

Reply via email to