1

我正在努力pycups在一个conda环境中工作。

我明白了Symbol not found: _libiconv

我在 macOS Mojave 上运行。

我认为这是一个路径问题,因为在同一台机器上它可以正常安装在使用 python3 创建的环境中:python3 -m venv myenv

但是对于 conda,没有这样的运气:

conda create myenv python=3.7
conda activate myenv
pip install pycups
python
Python 3.7.3 (default, Mar 27 2019, 16:54:48)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> import cups

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/anaconda3/envs/myenv/lib/python3.7/site-packages/cups.cpython-37m-darwin.so, 2): Symbol not found: _libiconv
  Referenced from: /anaconda3/envs/myenv/lib/python3.7/site-packages/cups.cpython-37m-darwin.so
  Expected in: /usr/lib/libiconv.2.dylib
 in /anaconda3/envs/myenv/lib/python3.7/site-packages/cups.cpython-37m-darwin.so
4

0 回答 0