Comments (7)
是不是没装c++编译器?
http://ubuntuforums.org/showthread.php?t=345201
On Wed, Jun 1, 2016 at 5:01 PM Fishily Guo [email protected] wrote:
mac系统下python2.7.11;Linux-ubuntu系统下python2.7.6,两个系统下两种安装方法都安装失败了,而且错误都是编译器的问题?求高人指导!
[image: 2016-06-01 4 50 34]
https://cloud.githubusercontent.com/assets/19208832/15703872/4d60ea60-281a-11e6-8ca0-3b09220805ba.png[image: 2016-06-01 4 54 33]
https://cloud.githubusercontent.com/assets/19208832/15703894/65717bb0-281a-11e6-8dc0-25b01140a4c8.png—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#49, or mute the thread
https://github.com/notifications/unsubscribe/AAtgGwTbalHvPw5Px9caQJz649dBu5iFks5qHUpsgaJpZM4IrVFx
.
from pyltp.
装完之后再试了一次依然失败,还有就是pip install命令需要在特定文件夹吗?
from pyltp.
还得装python-devel
On Wed, Jun 1, 2016 at 6:06 PM Fishily Guo [email protected] wrote:
装完之后再试了一次依然失败,还有就是pip install命令需要在特定文件夹吗?
[image: 2016-06-01 6 03 53]
https://cloud.githubusercontent.com/assets/19208832/15705834/7850f496-2823-11e6-9ef2-b93a626c8d2a.png—
You are receiving this because you commented.Reply to this email directly, view it on GitHub
#49 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAtgGzg_ZSJUEBdqnWDG2Ly6Xe7_zserks5qHVmMgaJpZM4IrVFx
.
from pyltp.
成功安装,谢谢!!
from pyltp.
我也是相同的错误,请问怎么解决的? @HITFishily
from pyltp.
ltp/thirdparty/dynet/dynet/dim.h: In constructor ‘dynet::Dim::Dim(const std::vector<long int, std::allocator<long int> >&)’:
ltp/thirdparty/dynet/dynet/dim.h:71: error: expected initializer before ‘:’ token
ltp/thirdparty/dynet/dynet/dim.h:72: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:72: error: expected ‘;’ before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:72: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:72: error: expected ‘)’ before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:72: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:72: error: expected ‘;’ before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h: In constructor ‘dynet::Dim::Dim(const std::vector<long int, std::allocator<long int> >&, unsigned int)’:
ltp/thirdparty/dynet/dynet/dim.h:80: error: expected initializer before ‘:’ token
ltp/thirdparty/dynet/dynet/dim.h:81: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:81: error: expected ‘;’ before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:81: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:81: error: expected ‘)’ before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:81: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/dim.h:81: error: expected ‘;’ before ‘}’ token
In file included from ltp/thirdparty/dynet/dynet/tensor.h:18,
from ltp/thirdparty/dynet/dynet/dynet.h:19,
from ltp/thirdparty/dynet/dynet/graph.cc:2:
ltp/thirdparty/dynet/dynet/devices.h: In constructor ‘dynet::Device::Device(int, dynet::DeviceType, dynet::MemAllocator*)’:
ltp/thirdparty/dynet/dynet/devices.h:33: error: ‘nullptr’ was not declared in this scope
ltp/thirdparty/dynet/dynet/devices.h: At global scope:
ltp/thirdparty/dynet/dynet/devices.h:73: error: cannot declare field ‘dynet::Device_CPU::cpu_mem’ to be of abstract type ‘dynet::CPUAllocator’
ltp/thirdparty/dynet/dynet/mem.h:26: note: because the following virtual functions are pure within ‘dynet::CPUAllocator’:
ltp/thirdparty/dynet/dynet/mem.h:16: note: virtual void* dynet::MemAllocator::malloc(size_t)
ltp/thirdparty/dynet/dynet/mem.h:17: note: virtual void dynet::MemAllocator::free(void*)
ltp/thirdparty/dynet/dynet/mem.h:18: note: virtual void dynet::MemAllocator::zero(void*, size_t)
In file included from ltp/thirdparty/dynet/dynet/dynet.h:19,
from ltp/thirdparty/dynet/dynet/graph.cc:2:
ltp/thirdparty/dynet/dynet/tensor.h: In constructor ‘dynet::Tensor::Tensor()’:
ltp/thirdparty/dynet/dynet/tensor.h:56: error: ‘nullptr’ was not declared in this scope
In file included from ltp/thirdparty/dynet/dynet/dynet.h:19,
from ltp/thirdparty/dynet/dynet/graph.cc:2:
ltp/thirdparty/dynet/dynet/tensor.h: In constructor ‘dynet::IndexTensor::IndexTensor()’:
ltp/thirdparty/dynet/dynet/tensor.h:403: error: ‘nullptr’ was not declared in this scope
In file included from ltp/thirdparty/dynet/dynet/dynet.h:20,
from ltp/thirdparty/dynet/dynet/graph.cc:2:
ltp/thirdparty/dynet/dynet/model.h: At global scope:
ltp/thirdparty/dynet/dynet/model.h:85: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:88: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:89: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:92: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:95: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:96: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:143: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:146: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:147: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:150: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:153: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:154: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:414: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:440: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:456: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:471: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:489: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:504: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:521: error: expected ‘;’ before ‘override’
ltp/thirdparty/dynet/dynet/model.h:537: error: expected ‘;’ before ‘override’
In file included from ltp/thirdparty/dynet/dynet/graph.cc:2:
ltp/thirdparty/dynet/dynet/dynet.h:544: error: expected ‘;’ before ‘final’
ltp/thirdparty/dynet/dynet/dynet.h:558: error: expected ‘;’ before ‘final’
ltp/thirdparty/dynet/dynet/graph.cc: In function ‘void dynet::graph_optimize(dynet::ComputationGraph*)’:
ltp/thirdparty/dynet/dynet/graph.cc:17: error: expected initializer before ‘:’ token
ltp/thirdparty/dynet/dynet/graph.cc:23: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:23: error: expected ‘;’ before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:23: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:23: error: expected ‘)’ before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:23: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:23: error: expected ‘;’ before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:15: warning: unused variable ‘v’
ltp/thirdparty/dynet/dynet/graph.cc:16: warning: unused variable ‘lp’
ltp/thirdparty/dynet/dynet/graph.cc:26: error: expected initializer before ‘:’ token
ltp/thirdparty/dynet/dynet/graph.cc:30: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:30: error: expected ‘)’ before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:30: error: expected primary-expression before ‘}’ token
ltp/thirdparty/dynet/dynet/graph.cc:30: error: expected ‘;’ before ‘}’ token
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/root/anaconda3/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-8vf2d8rg/pyltp/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-_966dxfs-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-8vf2d8rg/pyltp/
from pyltp.
大神,您好,请问是怎么解决的呢
from pyltp.
Related Issues (20)
- python 3.7 HOT 1
- Ubuntu20.04下面的安装问题-缺少头文件ltp/ner_dll.h HOT 4
- AttributeError: 'pyltp.Postagger' object has no attribute 'load' HOT 1
- TypeError: __init__(): incompatible constructor arguments HOT 1
- mDunc是什么意思?
- 编译安装报错 recipe for target 'CMakeFiles/pyltp.dir/rule' failed HOT 3
- 现在 pip install pyltp 是0.2.1 HOT 1
- cmake
- pyltp现在支持arm的CPU吗 HOT 1
- 分词结果错误 HOT 5
- macos build failed HOT 2
- 项目不维护也要至少保证编译通过啊 HOT 1
- linux环境安装失败啊 啊 烦躁 HOT 2
- 属性错误
- 语义角色标注模型在centos中加载失败 HOT 5
- TypeError: __init__(): incompatible constructor arguments. The following argument types are supported: 1. pyltp.Segmentor(model_path: str, lexicon_path: str = None, force_lexicon_path: str = None) HOT 1
- ImportError: DLL load failed: 找不到指定的模块
- 使用pyltp0.4.0出现错误WARNING: Attempting to initialize dynet twice. Ignoring duplicate initialization. Killed HOT 1
- AttributeError: ‘tuple‘ object has no attribute ‘head‘
- SementicRoleLabeller初始化报错。ValueError: basic_string::resize HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyltp.