简体   繁体   English

无法安装安装了64位版本的Anaconda的Boost库

[英]Unable to install the boost library with 64bit version of Anaconda installed

I am trying to install the boost library as shown here (see section install Boost from Shayne Fletcher: 我正在尝试按此处所示安装boost库(请参阅Shayne Fletcher的install Boost部分:

http://www.amazon.com/review/R2QLTSQPKTFW5Z/ref=cm_cr_pr_cmt?ie=UTF8&ASIN=0470987847#wasThisHelpful http://www.amazon.com/review/R2QLTSQPKTFW5Z/ref=cm_cr_pr_cmt?ie=UTF8&ASIN=0470987847#wasThisHelpful

However I already have installed the 64 bit version of Anaconda for Python 2.7.5. 但是我已经为Python 2.7.5安装了Anaconda的64位版本。 So when I follow the instructions above I get the similar linking errors to the OP experienced in the post below: 因此,当我按照上面的说明进行操作时,我会收到类似的链接错误,这些错误与下面的帖子中提到的OP:

Cannot successfully install Boost.Python 无法成功安装Boost.Python

The OP resolved the issue be removing the 64 bit version and replacing it with the 32 bit version. OP解决了该问题,删除了64位版本并将其替换为32位版本。

However I wondered if I could install both versions and switch between them, it seems that generally speaking you can: 但是我想知道是否可以同时安装这两个版本并在它们之间进行切换,看来一般而言您可以:

Anaconda Python 32-bit is trying to load Anaconda 64-bit libraries to-load-anaconda-64-bit-libraries Anaconda Python 32位正在尝试将Anaconda 64位库加载到load-anaconda-64位库

However that sill leaves the question of how the boost library will know how to use the correct version and where to find it? 但是,这仍然存在一个问题,那就是boost库将如何知道如何使用正确的版本以及在哪里可以找到它?

Or in my case would I still be better off removing the 64 bit version completely and installing the 32 bit version in its place? 还是就我而言,最好还是完全删除64位版本并安装32位版本呢?

I am doing the build in visual studio 2008. 我正在Visual Studio 2008中进行构建。

If you install the 32-bit version of Anaconda, you can conda install boost . 如果您安装32位版本的Anaconda,则可以conda install boost

As for how to switch between them, you will need to modify your PATH environment variable. 至于如何在它们之间切换,您将需要修改PATH环境变量。

If you are using 64-bit version. 如果使用的是64位版本。 Open Anaconda prompt in Admin mode and run the following command 在管理员模式下打开Anaconda提示符,然后运行以下命令

conda install -c anaconda boost 康达安装-C Anaconda Boost

It will automatically resolve environment 它将自动解决环境

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM