import universe 报错

来源:7-4 配置开发环境(2)

慕粉2011219583

2018-03-18

~/anaconda/envs/universe/lib/python3.5/site-packages/fastzbarlight/__init__.py 

---> 7 from ._zbarlight import zbar_code_scanner

dlopen(/Users/name/anaconda/envs/universe/lib/python3.5/site-packages/fastzbarlight/_zbarlight.cpython-35m-darwin.so, 2): Symbol not found: _iconv
 Referenced from: /Users/name/anaconda/envs/universe/lib/python3.5/site-packages/fastzbarlight/_zbarlight.cpython-35m-darwin.so
 Expected in: flat namespace
in /Users/name/anaconda/envs/universe/lib/python3.5/site-packages/fastzbarlight/_zbarlight.cpython-35m-darwin.so

写回答

2回答

Oscar

2018-03-22

你是在 macOS下吧。

可以说说你具体的操作步骤和运行的程序吗?谢谢

0
1
慕粉2011219583
已经解决,这个帖子里有解决办法 https://github.com/openai/universe/issues/139 ========================================== First, uninstall the broken package: pip uninstall fastzbarlight Then, download and extract the sources: pip download fastzbarlight tar zxf fastzbarlight-0.0.14.tar.gz cd fastzbarlight-0.0.14 Now edit setup.py and change line 29 as follows: (replace "/ANACONDADIR" with the full path to the 'anaconda' install directory, for example /Users/monty/anaconda) cmd = ['./configure', '--disable-dependency-tracking', '--without-python', '--without-qt', '--disable-video', '--without-gtk', '--without-imagemagick', '--with-x=no', 'CFLAGS=-Wall -Wno-parentheses -D_FORTIFY_SOURCE=0 -O3 -fPIC -I/ANACONDADIR/include -Wl,-rpath,/ANACONDADIR/lib -L/ANACONDADIR/lib'] Then build and install: pip install --no-cache-dir .
2018-03-22
共1条回复

慕粉2011219583

提问者

2018-03-18

尝试解决:

安装zbarlight,然后将里面的文件复制到 fastzbarlight中,可以运行,但是始终停留在

0.20.6: Pulling from openai/universe.gym-core

不动了,是不是国内被和谐掉了

0
1
慕粉2011219583
这个不是不动了,是文件比较大,有600多M,需要下载2个多小时,已经好了
2018-03-22
共1条回复

基于Python玩转人工智能最火框架 TensorFlow应用实践

机器学习入门,打牢TensorFlow框架应用是关键!

2214 学习 · 688 问题

查看课程