Comments (10)
Hi, @ershersh
http://www.paddlepaddle.org/doc_cn/demo/quick_start/index.html
Most of python snippets in this page are to describe the details of our system how it works.
All python files in quick_start, including dataprovider_bow.py
already in our script.
To make demo/quick_start runs, just typing following commands:
- ./preprocess.sh
- ./train.sh
you can open and modify train.sh, choose different models to train data. - ./predict.sh
from paddle.
It is an import issue of a python librarary named paddle.trainer.PyDataProvider2
.
How did you build and install PaddlePaddle? If you didn't install it and python can't find a clue from the import commands in the script. As a fix, you may choose from the following alternatives:
- Install PaddlePaddle: after successfully executed
make
and install it usingmake install
,sudo
may be necessary considering your local machines or consult your system administrator to properly install it. - Environment ablation: just add the directory of PaddlePaddle's python utilities before you could run any py script in PaddlePaddle, or simply copy the following line to your preprocess.sh, just before the lines that call any PaddlePaddle's py script.
export PYTHONPATH=/path/to/Paddle/python:$PYTHONPATH
P.S.: The link of PaddlePaddle's quick start in Chinese you provided in the original post is wrong and maybe you could fix it?
from paddle.
First i have fix the link and add the English website. ^_^
@gangliao ./preprocess.sh run ok. and next I try this:
cloud@cloud-virtual-machine:~/paddle-git/demo/quick_start$ ./train.sh
/usr/bin/../opt/paddle/bin/paddle_trainer: error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory
it shows that error about that .so library...
@stoneyang I use vmware11+ubuntu12.04 and install paddlepaddle by deb
root@cloud-virtual-machine:/home/cloud# dpkg -i paddle-0.8.0b0-Linux-cpu.deb
Selecting previously unselected package paddle.
(正在读取数据库 ... 系统当前共安装有 147560 个文件和目录。)
正在解压缩 paddle (从 paddle-0.8.0b0-Linux-cpu.deb) ...
dpkg:依赖关系问题使得 paddle 的配置工作不能继续:
paddle 依赖于 libatlas3-base;然而:
未安装软件包 libatlas3-base。
paddle 依赖于 libgflags2;然而:
未安装软件包 libgflags2。
paddle 依赖于 libgoogle-glog0;然而:
未安装软件包 libgoogle-glog0。
paddle 依赖于 libprotobuf8;然而:
未安装软件包 libprotobuf8。
paddle 依赖于 python-numpy;然而:
未安装软件包 python-numpy。
paddle 依赖于 python-pip;然而:
未安装软件包 python-pip。
paddle 依赖于 python-pip-whl;然而:
未安装软件包 python-pip-whl。
dpkg:处理 paddle (--install)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
paddle
root@cloud-virtual-machine:/home/cloud# apt-get install -f
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
正在更正依赖关系... 完成
下列软件包将被【卸载】:
paddle
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 686 个软件包未被升级。
有 1 个软件包没有被完全安装或卸载。
解压缩后将会空出 320 MB 的空间。
您希望继续执行吗?[Y/n]n
中止执行。
After command dpkg -i paddle-0.8.0b0-Linux-cpu.deb ,it shows that i still have error--some dependences not install, the guide doc tell me then apt-get install -f will continue install paddle, and install dependences, but the fact is it try to remove paddle so i choose canceled.Maybe there's something wrong here??
So I may try @stoneyang your ways to install later , see whether it can fix and update the result in time.thx all
from paddle.
meybe you should enter the paddle/python dir and run "python setup.py install"
from paddle.
@NIULQfromNJU i also try your method and did ont work
root@cloud-virtual-machine:/home/cloud/paddle-git/python# python setup.py.in install
Traceback (most recent call last):
File "setup.py.in", line 1, in
from setuptools import setup
ImportError: No module named setuptools
from paddle.
From your rely, you installed PaddlePaddle on your virtual machine using the shipped debian package according to the official instructions. Since you try to install CPU version of PaddlePaddle, maybe you should pay attention to the Note about the instruction set of your CPU listed at the bottom of the instructions. And make sure you have the proper access permission during installation.
As a reminder, the two solutions I provided is about building PaddlePaddle from the source code on your local machine. You can try it out if needed.
from paddle.
@ershersh You should use apt-get update
before apt-get install -f
to make apt
can find dependencies.
from paddle.
@ershersh Then you can follow the install instructions.
from paddle.
@reyoung I also try your method but it comes to the same result: after"apt-get install -f",it tells me to delete paddle. Now I use my spare time to install paddle by docker
thanks all the same!
from paddle.
more than 1 months passed, so close this issue.
from paddle.
Related Issues (20)
- paddlepaddle==2.6.0和2.6.1适配国产化与非国产化代码返回不一致问题 HOT 1
- Torch MultiHeadAttention To Paddle MultiHeadAttention Issue HOT 2
- softmax_with_cross_entropy API在软标签下label是否需要归一化 HOT 3
- 单机多卡问题 HOT 4
- Reported errors after running paddle.utils.run_check() HOT 1
- paddle.sparse.matmul两个参数都是sparse_csr_tensor时报错RuntimeError: (NotFound) The kernel `matmul_csr_csr` is not registered. HOT 2
- 这个教程代码有问题,https://www.paddlepaddle.org.cn/documentation/docs/zh/practices/nlp/transformer_in_English-to-Spanish.html
- Paddle的 Dataloader 遇到纯文本数据时报错 StopIteration HOT 1
- How to solve "license/cla Expected — Waiting for status to be reported" HOT 1
- 使用--use_trt出错 HOT 9
- 单机多卡问题 HOT 1
- templatedoc 机制清理 HOT 2
- 在华为Atlas310pro编译Paddle_npu版本,cmake有警告,make报错 HOT 3
- 【快乐开源】PIR模式下单测问题修复与适配
- 【开源之夏】动转静支持子图高阶微分
- phi::Device::SynchronizeStream传入的stream的raw_stream成员为空指针是否是正常的? HOT 24
- Does PP has a flowchart recognize product? HOT 2
- 如何将一个Tensor在内存中(不要保存到硬盘)序列化成可以通过网络传输的二进制格式? HOT 1
- noamdecay有点小问题 HOT 2
- 两个不同类型的tensor相加,不同类型的case GPU行为不一致 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 paddle.