pip可安装的嵌套扩展模块,由pipnest生成。

cereb-nest的Python项目详细描述


仙人掌巢

pip可安装的嵌套扩展模块,由pipnest生成。在

安装说明

使用pip

当通过pip安装时,该模块是在python外部使用CMake构建的 这意味着pip无法跟踪实际的安装状态。到 卸载并重新安装请参见Uninstallation。在

  1. 按照此处提供的说明安装NEST(https://www.nest-simulator.org/

  2. 使用pip安装

pip install cereb_nest --no-cache-dir
  1. 导入nest后加载模块:
^{pr2}$

卸载

要卸载此模块,请使用pip uninstall cereb_nest并删除 ^位于您的nest安装中的lib/nest/目录中的{}文件。在

使用CMake

  1. 导出包含NEST安装目录的环境变量。E、 g.:
export NEST_INSTALL_DIR=$HOME/nest-simulator-install
  1. 将此GitHub存储库克隆到嵌套源和构建目录之外的目录中。E、 g.:
cd $HOME
git clone https://github.com/dbbs-lab/cereb-nest/
  1. 移动到cereb nest目录并创建一个新文件夹,您将在其中构建扩展模块
cd cereb-nest
mkdir build
cd build
  1. 运行以下CMake命令(用CMake 3.2.2测试)
cmake -Dwith-nest=${NEST_INSTALL_DIR}/bin/nest-config ../cereb_nest

结果输出应类似于:

[...]
-------------------------------------------------------

You can now build and install 'cerebmodule' using
  make
  make install

The library file libcerebmodule.so will be installed to
  /home/alberto/nest-simulator-install/lib/nest
Help files will be installed to
  /home/alberto/nest-simulator-install/share/doc/nest

The module can be loaded into NEST using
  (cerebmodule) Install        (in SLI)
  nest.Install('cerebmodule')  (in PyNEST)

The module will be installed into a non-default location!
Make sure to set the environment variables:
  export NEST_MODULE_PATH=/home/alberto/nest-simulator-install/lib/nest:$NEST_MODULE_PATH
  export SLI_PATH=/home/alberto/nest-simulator-install/share/nest/sli:$SLI_PATH

 [...]
  1. 执行由CMake命令生成的最后两行。在
export NEST_MODULE_PATH=/home/alberto/nest-simulator-install/lib/nest:$NEST_MODULE_PATH
export SLI_PATH=/home/alberto/nest-simulator-install/share/nest/sli:$SLI_PATH

每次终端关闭时,应重复此通道。可以在.bashrc中添加这两行,以避免每次都这样做。在

  1. 制作并安装模块
make
make install
  1. 每次需要该模块时,可以按以下方式安装:
^{pr2}$
  1. 现在可以使用这个嵌套模块中包含的所有节点和突触。在

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
二进制字符串的java NumberFormatExceprion   java如何在Neo4j中查找/匹配/选择标识符名称   java哪一年的日期与原始年份相同?   java什么时候JAXB可以用于Json而不是XML?   java使用PayPal权限API进行PayPal支付   java Getting error在使用安卓 vision api扫描二维码时加载图像失败   java直接突出显示RichTextFX中的一个文本范围   java Resolve@RegisteredAuth2AuthorizedClient,其令牌在spring Security 5.2的spring server之外获得。十、   yyyymmddhhmmss的Java正则表达式   java我试图将google recaptcha与spring mvc集成,但GreCaptCharResponse总是返回false。这里有一些代码   java使用JsonPath将文本转换为json   java无法解析符号。Maven依赖项已就位,但代码为红色   java使用循环查找范围内具有不同数字的数字   java这个SwingWorker是否不重用ThreadPoolExecutor中的线程?