Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译pycaffe错误显示 无法开启"python27.lib #262

Open
Lordores opened this issue Dec 20, 2017 · 14 comments
Open

编译pycaffe错误显示 无法开启"python27.lib #262

Lordores opened this issue Dec 20, 2017 · 14 comments

Comments

@Lordores
Copy link

Lordores commented Dec 20, 2017

我用Anaconda3装的 python3.6,libcaffe成功编译,但在编译其他的时候,如pycaffe等出现

錯誤 LNK1104 無法開啟檔案 'python27.lib' caffe E:\caffe\newcaffe\caffe-windows-ms\windows\caffe\LINK 1

请问是一定需要python2.7么?

@Lordores Lordores changed the title 错误显示 无法开启"python27.lib 编译pycaffe错误显示 无法开启"python27.lib Dec 20, 2017
@gaexp251546
Copy link

同問題!@@ 目前有解決方法嗎?!

@maxteleg
Copy link

@Lordores @gaexp251546 原因是你下载的thirdparty里的libboost版本是用python2.7编译的,你自己下载一个Boost source code,自己编译一下:先运行bootstrap.bat(Boost根目录下),再在命令行下运行 .\b2.exe address-model=64(这个一定要加,默认可能是32位的),然后复制到thridparty里(include要一起复制)

@cuixing158
Copy link

我的也是,因为windows上python3.6还没出现兼容的caffe,依赖的库版本有几个不一样,如protobuf,lmdb,libboost,我还是放弃了,比较折腾,要用就用python2.7,配置方便

@xiaosuzhang
Copy link

@maxteleg 将编译好的哪些boost文件替换过去呢?boost全部文件夹吗??

@maxteleg
Copy link

maxteleg commented Jul 6, 2018

@xiaosuzhang $BOOST_DIR/stage/lib/ 下的所有以‘.lib'结尾的文件;还有$BOOST_DIR/boost文件夹

@xiaosuzhang
Copy link

@maxteleg 您好,可以把您编译过得基于python3.5的thirdparty发我一份吗??谢谢

@maxteleg
Copy link

@xiaosuzhang 链接:https://pan.baidu.com/s/12JvS3vqkp_-9A0Oqkxfa5Q 密码:aokj

@justein
Copy link

justein commented Jan 3, 2019

为什么我拷贝过去了,还是出现 python27.lib 呢?

@justein
Copy link

justein commented Jan 3, 2019

@maxteleg 你发的这个百度链接失效了,麻烦能重新发一下么?急需,谢谢!

@maxteleg
Copy link

@justein Sorry for the late reply: https://pan.baidu.com/s/1o_qGgZQ0M5Z06TuEQxkF2g icsq

@justein
Copy link

justein commented Jan 17, 2019

@maxteleg very thanks your reply ,but I have changed py27,thx all the same!

@SCUT-chenjia
Copy link

@ maxteleg ,你好,根绝提供的python3.5编译的thirdparty,复制进去,但是会出现找不到 python36.lib的问题,请问怎么解决呢?

@ZhouYiiFeng
Copy link

i have the same problem, and i solve this problem by using the absolute path of the 'lib and include' in the CommonSetings.props

@ZhouYiiFeng
Copy link

@ maxteleg ,你好,根绝提供的python3.5编译的thirdparty,复制进去,但是会出现找不到 python36.lib的问题,请问怎么解决呢?

maybe you should try the python2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants