简体   繁体   English

没有这样的文件或目录:'/opt/anaconda3/lib/python3.8/site-packages/rtree/lib'

[英]No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib'

I am trying to build an app from a python file (Mac OS) using the py2app extension.我正在尝试使用 py2app 扩展从 python 文件(Mac OS)构建应用程序。 I have a folder with the python file and the "setup.py" file.我有一个包含 python 文件和“setup.py”文件的文件夹。

  • I first tested the app by running python setup.py py2app -A in the terminal and the dist and build folder are successfully created and the app works when launched.我首先通过在终端中运行python setup.py py2app -A来测试该应用程序,并且成功创建了 dist 和 build 文件夹,并且该应用程序在启动时可以工作。
  • Now when I try to build it non-locally by running the command python setup.py py2app in the terminal, there are various "WARNING: ImportERROR" messages while building and finally a error: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib' error.现在,当我尝试通过在终端中运行命令python setup.py py2app在非本地构建它时,构建时会出现各种“警告:ImportERROR”消息,最后出现error: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib'错误。

    How can I fix this?我怎样才能解决这个问题? I've tried to delete anaconda fully as I don't use it but it seems to still want to run through it.我试图完全删除 anaconda,因为我不使用它,但它似乎仍然想通过它。 Additionally, I have tried to run the build command using a virtual environment but I end up having even more import errors.此外,我尝试使用虚拟环境运行构建命令,但最终出现更多导入错误。
    * I Left out a lot of the "skipping" and "warning" lines using "..." for space *我省略了很多使用“...”作为空格的“跳过”和“警告”行
(base) keshavshankar@Keshavs-MacBook-Pro IEEE Citation Creator % python setup.py py2app
running py2app
creating /Users/keshavshankar/Desktop/IEEE Citation Creator/build/bdist.macosx-10.9-x86_64/python3.8-standalone
creating /Users/keshavshankar/Desktop/IEEE Citation Creator/build/bdist.macosx-10.9-x86_64/python3.8-standalone/app
creating /Users/keshavshankar/Desktop/IEEE Citation Creator/build/bdist.macosx-10.9-x86_64/python3.8-standalone/app/collect
creating /Users/keshavshankar/Desktop/IEEE Citation Creator/build/bdist.macosx-10.9-x86_64/python3.8-standalone/app/temp
creating build/bdist.macosx-10.9-x86_64/python3.8-standalone/app/lib-dynload
creating build/bdist.macosx-10.9-x86_64/python3.8-standalone/app/Frameworks
--- Skipping recipe PIL ---
*** using recipe: automissing *** {'expected_missing_imports': {'winreg', '_frozen_importlib_external', 'sys.getwindowsversion', '_winapi', 'nt'}}
--- Skipping recipe PIL ---
--- Skipping recipe autopackages ---
CTYPES USERS [SourceModule('ctypes._endian', '/opt/anaconda3/lib/python3.8/ctypes/_endian.py'), Package('test.support', '/opt/anaconda3/lib/python3.8/test/support/__init__.py', ['/opt/anaconda3/lib/python3.8/test/support']), SourceModule('ctypes.wintypes', '/opt/anaconda3/lib/python3.8/ctypes/wintypes.py'), Package('ctypes.macholib', '/opt/anaconda3/lib/python3.8/ctypes/macholib/__init__.py', ['/opt/anaconda3/lib/python3.8/ctypes/macholib']), SourceModule('ctypes._aix', '/opt/anaconda3/lib/python3.8/ctypes/_aix.py'), SourceModule('ctypes.util', '/opt/anaconda3/lib/python3.8/ctypes/util.py'), SourceModule('multiprocessing.sharedctypes', '/opt/anaconda3/lib/python3.8/multiprocessing/sharedctypes.py'), Script('/Users/keshavshankar/Desktop/IEEE Citation Creator/.eggs/py2app-0.27-py3.8.egg/py2app/bootstrap/argv_emulation.py',)]
*** using recipe: ctypes *** {'prescripts': ['py2app.bootstrap.ctypes_setup']}
--- Skipping recipe PIL ---
--- Skipping recipe autopackages ---
*** using recipe: detect_dunder_file *** {'packages': {'certifi'}}
--- Skipping recipe PIL ---
--- Skipping recipe autopackages ---
*** using recipe: ftplib *** {}
--- Skipping recipe PIL ---
--- Skipping recipe autopackages ---
--- Skipping recipe gcloud ---
--- Skipping recipe lxml ---
--- Skipping recipe matplotlib ---
*** using recipe: multiprocessing *** {'prescripts': [<_io.StringIO object at 0x7f9221c91ca0>]}
--- Skipping recipe PIL ---
--- Skipping recipe autopackages ---
--- Skipping recipe gcloud ---
--- Skipping recipe lxml ---
--- Skipping recipe matplotlib ---
--- Skipping recipe opencv ---
--- Skipping recipe pandas ---
--- Skipping recipe platformdirs ---
--- Skipping recipe pydantic ---
*** using recipe: pydoc *** {}
--- Skipping recipe PIL ---
--- Skipping recipe autopackages ---
--- Skipping recipe gcloud ---
--- Skipping recipe lxml ---
--- Skipping recipe matplotlib ---
--- Skipping recipe opencv ---
--- Skipping recipe pandas ---
--- Skipping recipe platformdirs ---
--- Skipping recipe pydantic ---
--- Skipping recipe pyenchant ---
--- Skipping recipe pygame ---
--- Skipping recipe pylsp ---
--- Skipping recipe pyopengl ---
--- Skipping recipe pyside ---
--- Skipping recipe pyside2 ---
--- Skipping recipe pyside6 ---
--- Skipping recipe qt5 ---
--- Skipping recipe qt6 ---
--- Skipping recipe rtree ---
*** using recipe: setuptools *** {'expected_missing_imports': {'pkg_resources.extern.packaging', '__main__.__requires__', '__builtin__', 'pkg_resources.extern.pyp', 'pkg_resources.extern.app'}}
--- Skipping recipe PIL ---
...
--- Skipping recipe shiboken6 ---
sip: packages: {'pasta', 'cytoolz-0.11.0-py3.8.egg-info', 'defusedxml', 'cv2', 'PyQt5.QtTest', 'unicodecsv-0.14.1-py3.8.egg-info', '_distutils_hack', 'ipywidgets', 'mypy_extensions-0.4.3-py3.8.egg-info', 'PyQt5', 'qtconsole', 'anaconda_project-0.9.1.dist-info', 'imageio-2.9.0.dist-info', 'conda_env', 'isort-5.8.0.dist-info', 'Markdown-3.3.4.dist-info', 'kiwisolver-1.3.1.dist-info', 'ipython_genutils', 'pytz-2021.1.dist-info', 'Cython', 'opt_einsum-3.3.0.dist-info', 'dateutil', 'bitarray', 'scikit_image-0.18.1-py3.8.egg-info', 'chardet', 'pyls_spyder-0.3.2.dist-info', 'sphinxcontrib_htmlhelp-1.0.3.dist-info', 'google', 'lazy_object_proxy-1.6.0.dist-info', 'PyQt5.QtSql', 'diff_match_patch', 'navigator_updater', 'pandas-1.2.4-py3.8.egg-info', 'astropy-4.2.1.dist-info', 'wrapt', 'nest_asyncio-1.5.1.dist-info', 'html5lib', 'Pillow-8.3.1.dist-info', 'anaconda_client-1.7.2.dist-info', 'xlwings-0.23.0-py3.8.egg-info', 'docutils', 'PyQt5.QtWidgets', 'tlz', 'appdirs-1.4.4-py3.6.egg-info', 'ruamel_yaml_conda-0.15.100.dist-info', 'PyQt5.QtSvg', 'curl', 'alabaster', 'PyQt5.QtMultimediaWidgets', 'bokeh', 'pyasn1_modules-0.2.8.dist-info', 'PyQt5.pyrcc', 'astroid', 'three_merge-0.1.1.dist-info', 'sklearn', 'seaborn', 'mpmath', 'et_xmlfile-1.0.1-py3.7.egg-info', 'cachetools', 'testpath', 'pylint-2.7.4.dist-info', 'MarkupSafe-1.1.1.dist-info', 'requests_oauthlib-1.3.0.dist-info', 'bitarray-1.9.2.dist-info', 'xlwings', 'mkl_fft-1.3.0-py3.8.egg-info', 'numba-0.53.1.dist-info', 'PyQt5.QtWebEngineWidgets', 'patsy-0.5.1-py3.8.egg-info', 'tensorflow-2.5.0.dist-info', 'nbclient', 'astropy', 'spyder-4.2.5.dist-info', 'mpl_toolkits', 'docutils-0.17.dist-info', 'numpydoc', 'absl', 'diff_match_patch-20200713.dist-info', 'pyflakes-2.2.0.dist-info', 'tornado-6.1.dist-info', 'zict-2.0.0-py3.9.egg-info', 'cachetools-4.2.2.dist-info', 'pytest-6.2.3-py3.8.egg-info', 'sortedcollections', 'jupyterlab_widgets-1.0.0.dist-info', 'lxml', 'pathspec-0.7.0.dist-info', 'setuptools-52.0.0.post20210125-py3.8.egg-info', 'qtpy', 'matplotlib-3.3.4.dist-info', 'bkcharts-0.2-py3.8.egg-info', 'mkl_service-2.3.0-py3.8.egg-info', 'applaunchservices', 'toolz-0.11.1.dist-info', 'PyQt5.QtNfc', 'PyQt5.QtPositioning', 'setuptools', 'pyparsing-2.4.7.dist-info', 'keyring-22.3.0.dist-info', 'PyYAML-5.4.1-py3.8-macosx-10.9-x86_64.egg-info', 'distributed', 'conda_build', 'jinja2', 'webencodings', 'conda_content_trust', 'threadpoolctl-2.1.0.dist-info', 'colorama-0.4.4.dist-info', 'Sphinx-4.0.1.dist-info', 'numpy-1.20.1.dist-info', 'pluggy-0.13.1.dist-info', 'PyQt5.QtQml', 'pyls_black-0.4.6.dist-info', 'statsmodels', 'gevent', 'PyQt5.QtQuickWidgets', 'pathtools-0.1.2.dist-info', 'ipython_genutils-0.2.0.dist-info', 'tables', 'numexpr-2.7.3.dist-info', 'typed_ast-1.4.2.dist-info', 'ipython-7.22.0.dist-info', 'terminado-0.9.4-py3.8.egg-info', 'gast-0.4.0.dist-info', 'psutil-5.8.0.dist-info', 'six-1.15.0.dist-info', 'Flask-1.1.2.dist-info', 'mkl_random', 'glob2', 'certifi', 'olefile', 'scikit_learn-0.24.1.dist-info', 'gast', 'pathlib2', 'keras_nightly-2.5.0.dev2021032900.dist-info', 'lxml-4.6.3.dist-info', 'requests_oauthlib', 'jupyter_client', 'et_xmlfile', 'tensorboard_data_server-0.6.1.dist-info', 'llvmlite-0.36.0-py3.8.egg-info', 'spyder', 'keras', 'erfa', 'snowballstemmer-2.1.0.dist-info', 'scripts', 'PyQt5.QtGui', 'Jinja2-2.11.3.dist-info', 'HeapDict-1.0.1.dist-info', 'atomicwrites', 'flake8-3.9.0.dist-info', 'requests-2.25.1.dist-info', 'jupyter_console-6.4.0.dist-info', 'anaconda_clean-1.0.dist-info', 'dask-2021.4.0.dist-info', 'tensorboard_plugin_wit-1.8.0.dist-info', 'libfuturize', 'urllib3', 'singledispatch', 'xmltodict-0.12.0.dist-info', 'sphinxcontrib', 'PyQt5.QtDesigner', 'conda_repo_cli-1.0.4.dist-info', 'conda_verify-3.4.2.dist-info', 'sphinxcontrib_jsmath-1.0.1.dist-info', 'sniffio-1.2.0.dist-info', 'libarchive', 'soupsieve-2.2.1.dist-info', 'binstar_client', 'Rtree-0.9.7.dist-info', 'glob2-0.7.dist-info', 'clyent-1.2.2-py3.8.egg-info', 'PyQt5.QtWebEngineCore', 'urllib3-1.26.4.dist-info', 'jupyterlab_pygments', 'py', 'docs', 'grpc', 'partd-1.2.0.dist-info', 'PyQt5.uic', 'yapf-0.31.0.dist-info', 'pyls_spyder', 'wrapt-1.12.1.dist-info', 'greenlet-1.0.0.dist-info', 'argon2_cffi-20.1.0.dist-info', 'astroid-2.5.dist-info', 'pycparser', 'PyQt5.QtSensors', 'conda-4.11.0-py3.8.egg-info', 'boto', 'path', 'cffi', 'imagesize-1.2.0.dist-info', 'sympy-1.8.dist-info', 'itsdangerous', 'msgpack-1.0.2.dist-info', 'jupyter_packaging', 'distributed-2021.4.0.dist-info', 'Keras_Preprocessing-1.1.2.dist-info', 'XlsxWriter-1.3.8.dist-info', 'pyasn1-0.4.8.dist-info', 'async_generator', 'sphinxcontrib_applehelp-1.0.2.dist-info', 'nose', 'mock', 'wcwidth', 'termcolor-1.1.0.dist-info', 'flatbuffers', 'Werkzeug-1.0.1.dist-info', 'rope-0.18.0.dist-info', 'autopep8-1.5.6.dist-info', 'tensorboard', '_pytest', 'ptyprocess', 'markdown', 'jupyterlab_widgets', 'soupsieve', 'idna', 'path-15.1.2.dist-info', 'regex', 'tblib-1.7.0.dist-info', 'cryptography-3.4.7.dist-info', 'yapf', 'jedi-0.17.2.dist-info', 'pkginfo-1.7.0-py3.8.egg-info', 'sqlalchemy', 'tifffile', 'ujson-4.0.2.dist-info', 'prompt_toolkit', 'black-19.10b0.dist-info', 'nose-1.3.7.dist-info', 'numpy', 'parso-0.7.0.dist-info', 'backports.tempfile-1.0.dist-info', 'filelock-3.0.12.dist-info', 'pytesseract', 'pandocfilters-1.4.3.dist-info', 'jupyter_server-1.4.1.dist-info', 'attr', 'anyio', 'argh', 'atomicwrites-1.4.0.dist-info', 'google_pasta-0.2.0.dist-info', 'SQLAlchemy-1.4.7.dist-info', 'typing_extensions-3.7.4.3.dist-info', 'Babel-2.9.0.dist-info', 'PyQt5.QtWebSockets', 'PyQt5.QtSerialPort', 'pathspec', 'requests', 'python_jsonrpc_server-0.4.0.dist-info', 'joblib', 'tqdm-4.59.0.dist-info', 'toml', 'PyQt5.QtPrintSupport', 'pylint', 'markupsafe', 'Cython-0.29.23.dist-info', 'jupyterlab_server', 'watchdog-1.0.2.dist-info', 'mkl_random-1.2.1.dist-info', 'jsonschema', 'more_itertools-8.7.0.dist-info', 'tensorboard-2.5.0.dist-info', 'certifi-2021.10.8-py3.8.egg-info', 'mock-4.0.3.dist-info', 'more_itertools', 'rsa-4.7.2.dist-info', 'asn1crypto', 'jupyter_client-6.1.12.dist-info', 'importlib_metadata', 'asn1crypto-1.4.0.dist-info', 'pexpect-4.8.0.dist-info', 'packaging-20.9.dist-info', 'python_dateutil-2.8.1.dist-info', 'webencodings-0.5.1-py3.8.egg-info', 'pyOpenSSL-20.0.1.dist-info', 'xlwt', 'spyder_kernels-1.10.2.dist-info', 'itsdangerous-1.1.0.dist-info', 'nbformat', 'jupyter-1.0.0.dist-info', 'oauthlib-3.1.1.dist-info', 'pygments', 'py-1.10.0.dist-info', 'sniffio', 'mistune-0.8.4.dist-info', 'PIL', 'fsspec', 'argh-0.26.2-py3.8.egg-info', 'rtree', 'xlwt-1.3.0-py3.8.egg-info', 'numba', 'notebook', 'unicodecsv', 'bs4', 'qtawesome', 'PyQt5.QtNetwork', 'backports.functools_lru_cache-1.6.4.dist-info', 'scipy-1.6.2.dist-info', 'sympy', 'jdcal-1.4.1.dist-info', 'json5', 'testpath-0.4.4.dist-info', 'brotli', 'anaconda_navigator', 'sklearn-0.0.dist-info', 'PyQt5.QtXmlPatterns', 'pyasn1_modules', 'lazy_object_proxy', 'libarchive_c-2.9.dist-info', 'prometheus_client-0.10.1.dist-info', 'PyQt5.QtXml', 'pyrsistent', 'xlrd', 'iniconfig-1.1.1.dist-info', 'flake8', 'aeosa', 'qtconsole-5.0.3.dist-info', 'networkx', 'PyQt5.QtLocation', 'PyQt5.QtBluetooth', 'pandas', 'python_language_server-0.36.2.dist-info', 'mkl_fft', 'applaunchservices-0.2.1.dist-info', 'conda_package_handling-1.7.3.dist-info', 'attrs-20.3.0.dist-info', 'werkzeug', 'appnope', 'chardet-4.0.0.dist-info', 'QDarkStyle-2.8.1.dist-info', 'statsmodels-0.12.2.dist-info', 'brotlipy-0.7.0-py3.8.egg-info', 'three_merge', 'babel', 'click', 'jupyterlab', 'beautifulsoup4-4.9.3.dist-info', 'pyzmq-20.0.0-py3.8.egg-info', 'protobuf-3.17.3.dist-info', 'nbclassic', 'cryptography', 'pathtools', 'pickleshare-0.7.5.dist-info', 'QtPy-1.9.0.dist-info', 'past', 'openpyxl-3.0.7.dist-info', 'llvmlite', 'conda_token-0.3.0.dist-info', 'cffi-1.14.5.dist-info', 'tensorflow', 'multipledispatch', 'typed_ast', 'h5py', 'zope', 'pytest', 'PyQt5.QtHelp', 'astunparse-1.6.3.dist-info', 'flask', 'bleach', 'partd', 'importlib_metadata-3.10.0.dist-info', 'simplegeneric-0.8.1-py3.8.egg-info', 'skimage', 'Send2Trash-1.5.0.dist-info', 'matplotlib', 'jupyter_server', 'ply-3.11-py3.8.egg-info', 'nbclient-0.5.3.dist-info', 'PyQt5.Qt', 'widgetsnbextension-3.5.1.dist-info', 'tensorboard_plugin_wit', 'pep8-1.7.1-py3.8.egg-info', 'isort', 'rope', 'clyent', 'h5py-2.10.0.dist-info', 'ipykernel', 'blib2to3', 'pyflakes', 'cv-1.0.0.dist-info', 'prompt_toolkit-3.0.17.dist-info', 'tensorflow_estimator', 'zope.interface-5.3.0.dist-info', 'async_generator-1.10.dist-info', 'ruamel_yaml', 'keyring', 'jupyter_packaging-0.7.12.dist-info', 'IPython', 'idna-2.10.dist-info', 'pydocstyle-6.0.0.dist-info', 'jsonschema-3.2.0.dist-info', 'rsa', 'seaborn-0.11.1.dist-info', 'pycodestyle-2.6.0.dist-info', 'nbclassic-0.2.6.dist-info', 'pluggy', 'PyQt5.QtWebChannel', 'fastcache', 'future', 'xlrd-2.0.1.dist-info', 'pycparser-2.20.dist-info', 'olefile-0.46.dist-info', 'jupyterlab-3.0.14.dist-info', 'prometheus_client', 'mpmath-1.2.1-py3.8.egg-info', 'click-7.1.2.dist-info', 'conda_content_trust-0+unknown.dist-info', 'numpy-1.19.5.dist-info', 'decorator-5.0.6.dist-info', '_yaml', 'joblib-1.0.1.dist-info', 'PyQt5.QtCore', 'send2trash', 'PyQt5.__pycache__', 'navigator_updater-0.2.1-py3.8.egg-info', 'imageio', 'greenlet', 'psutil', 'yaml', 'backports.shutil_get_terminal_size-1.0.0.dist-info', 'absl_py-0.13.0.dist-info', 'cycler-0.10.0-py3.8.egg-info', 'Bottleneck-1.3.2.dist-info', 'regex-2021.4.4.dist-info', 'backcall', 'ipywidgets-7.6.3.dist-info', 'jedi', 'numpydoc-1.1.0.dist-info', 'xlsxwriter', 'yapftests', 'Keras-2.4.3.dist-info', 'pexpect', 'cloudpickle', 'jupyterlab_pygments-0.1.2.dist-info', 'toml-0.10.2.dist-info', 'PyQt5.QtMacExtras', 'networkx-2.5.dist-info', 'msgpack', 'pyasn1', 'pip-21.0.1-py3.8.egg-info', 'tornado', 'conda_build-3.21.4-py3.8.egg-info', 'PyWavelets-1.1.1.dist-info', 'multipledispatch-0.6.0.dist-info', 'jupyter_core', 'repo_cli', 'wurlitzer-2.1.0.dist-info', 'backports', 'opt_einsum', 'widgetsnbextension', 'sphinxcontrib_websupport-1.2.4.dist-info', 'backcall-0.2.0.dist-info', 'sortedcontainers', 'traitlets', 'libpasteurize', 'appscript-1.1.2.dist-info', 'sphinxcontrib_serializinghtml-1.1.4.dist-info', 'zipp-3.4.1.dist-info', 'tqdm', 'future-0.18.2.dist-info', 'google_auth_oauthlib', 'spyder_kernels', 'jupyter_core-4.7.1.dist-info', 'contextlib2-0.6.0.post1.dist-info', 'packaging', 'Pygments-2.8.1.dist-info', 'pytz', 'pyodbc-4.0.0_unsupported.dist-info', 'parso', 'qdarkstyle', 'QtAwesome-1.0.2.dist-info', 'wcwidth-0.2.5.dist-info', 'nbconvert-6.0.7.dist-info', 'OpenSSL', 'pydocstyle', 'sortedcollections-2.1.0.dist-info', 'conda', 'PyQt5.QtDBus', 'pyls', 'oauthlib', 'iniconfig', 'PySocks-1.7.1.dist-info', 'PyQt5.QtWebEngine', 'jupyterlab_server-2.4.0.dist-info', 'pyrsistent-0.17.3.dist-info', 'appnope-0.1.2.dist-info', 'sphinxcontrib_devhelp-1.0.2.dist-info', 'conda_package_handling', 'gevent-21.1.2.dist-info', 'tables-3.6.1.dist-info', 'nbformat-5.1.3.dist-info', 'colorama', 'conda_verify', 'snowballstemmer', 'terminado', 'dask', 'pywt', 'zmq', 'pyximport', 'textdistance', 'tifffile-2020.10.1-py3.8.egg-info', 'nltk', 'pkginfo', 'PyQt5.pylupdate', 'backports.weakref-1.0.post1-py2.7.egg-info', 'pyls_jsonrpc', 'tensorboard_data_server', 'pkg_resources', 'scipy', 'watchdog', 'PyQt5.QtQuick', 'pytesseract-0.3.8.dist-info', 'wheel', 'google_auth-1.33.1.dist-info', 'ptyprocess-0.7.0.dist-info', 'patsy', 'toolz', 'pathlib2-2.3.5.dist-info', 'PyQt5.QtOpenGL', 'anaconda_navigator-2.0.3-py3.8.egg-info', 'traitlets-5.0.5.dist-info', 'textdistance-4.2.1.dist-info', 'intervaltree', 'grpcio-1.34.1.dist-info', 'wheel-0.36.2-py3.6.egg-info', 'cytoolz', 'json5-0.9.5.dist-info', 'openpyxl', 'mkl', 'google_auth_oauthlib-0.4.4.dist-info', 'bokeh-2.3.2.dist-info', 'intervaltree-3.1.0.dist-info', 'bottleneck', 'jupyter_console', 'xontrib', 'mccabe-0.6.1-py3.8.egg-info', 'cloudpickle-1.6.0.dist-info', 'ply', 'tensorflow_estimator-2.5.0.dist-info', 'ipykernel-5.3.4.dist-info', 'keras_preprocessing', 'bkcharts', 'astunparse', 'alabaster-0.7.12.dist-info', 'argon2', 'sortedcontainers-2.3.0.dist-info', 'nbconvert', 'opencv_python-4.5.3.56.dist-info', 'fastcache-1.1.0.dist-info', 'tblib', 'pyls_black', 'anyio-2.2.0.dist-info', 'pip', 'sphinxcontrib_qthelp-1.0.3.dist-info', '__pycache__', 'zict', 'html5lib-1.1.dist-info', 'numexpr', 'notebook-6.3.0.dist-info', 'bleach-3.3.0.dist-info', 'defusedxml-0.7.1.dist-info', 'h5py-3.1.0.dist-info', 'flatbuffers-1.12.dist-info', 'zope.event-4.5.0-py3.8.egg-info', 'conda_token', 'nltk-3.6.1.dist-info', 'fsspec-0.9.0.dist-info', 'anaconda_project', 'pyerfa-1.7.3.dist-info', 'sphinx', 'singledispatch-0.0.0.dist-info'}
WARNING: ImportError in sip recipe ignored: No module named cytoolz-0
WARNING: ImportError in sip recipe ignored: No module named unicodecsv-0
WARNING: ImportError in sip recipe ignored: No module named mypy_extensions-0
WARNING: ImportError in sip recipe ignored: No module named anaconda_project-0
WARNING: ImportError in sip recipe ignored: No module named imageio-2
-:1114: SyntaxWarning: "is" with a literal. Did you mean "=="?
/opt/anaconda3/lib/python3.8/site-packages/boto/iam/connection.py:1114: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if tld is 'default':
WARNING: ImportError in sip recipe ignored: No module named isort-5
WARNING: ImportError in sip recipe ignored: No module named Markdown-3
...
WARNING: ImportError in sip recipe ignored: No module named sniffio-1
WARNING: ImportError in sip recipe ignored: No module named soupsieve-2
-:124: SyntaxWarning: "is" with a literal. Did you mean "=="?
-:130: SyntaxWarning: "is" with a literal. Did you mean "=="?
/opt/anaconda3/lib/python3.8/site-packages/binstar_client/requests_ext.py:124: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if mode is 0:
/opt/anaconda3/lib/python3.8/site-packages/binstar_client/requests_ext.py:130: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif mode is 2:
WARNING: ImportError in sip recipe ignored: No module named Rtree-0
WARNING: ImportError in sip recipe ignored: No module named glob2-0
...
WARNING: ImportError in sip recipe ignored: No module named backcall-0
WARNING: ImportError in sip recipe ignored: No module named appscript-1
WARNING: ImportError in sip recipe ignored: No module named sphinxcontrib_serializinghtml-1
WARNING: ImportError in sip recipe ignored: No module named zipp-3
WARNING: ImportError in sip recipe ignored: No module named future-0
...
WARNING: ImportError in sip recipe ignored: No module named cloudpickle-1
WARNING: ImportError in sip recipe ignored: No module named tensorflow_estimator-2
WARNING: ImportError in sip recipe ignored: No module named ipykernel-5
-:478: SyntaxWarning: "is not" with a literal. Did you mean "!="?
/opt/anaconda3/lib/python3.8/site-packages/bkcharts/utils.py:478: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if lev is not '' and row_text == '':
-:615: SyntaxWarning: "is not" with a literal. Did you mean "!="?
-:615: SyntaxWarning: "is not" with a literal. Did you mean "!="?
/opt/anaconda3/lib/python3.8/site-packages/bkcharts/data_source.py:615: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  k is not 'dims' and k is not 'required_dims']
/opt/anaconda3/lib/python3.8/site-packages/bkcharts/data_source.py:615: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  k is not 'dims' and k is not 'required_dims']
-:452: SyntaxWarning: "is" with a literal. Did you mean "=="?
/opt/anaconda3/lib/python3.8/site-packages/bkcharts/builder.py:452: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if attr is 'label':
WARNING: ImportError in sip recipe ignored: No module named alabaster-0
WARNING: ImportError in sip recipe ignored: No module named sortedcontainers-2
WARNING: ImportError in sip recipe ignored: No module named opencv_python-4
WARNING: ImportError in sip recipe ignored: No module named fastcache-1
WARNING: ImportError in sip recipe ignored: No module named anyio-2
WARNING: ImportError in sip recipe ignored: No module named sphinxcontrib_qthelp-1
WARNING: ImportError in sip recipe ignored: No module named html5lib-1
WARNING: ImportError in sip recipe ignored: No module named notebook-6
WARNING: ImportError in sip recipe ignored: No module named bleach-3
WARNING: ImportError in sip recipe ignored: No module named defusedxml-0
WARNING: ImportError in sip recipe ignored: No module named h5py-3
WARNING: ImportError in sip recipe ignored: No module named flatbuffers-1
WARNING: ImportError in sip recipe ignored: No module named nltk-3
WARNING: ImportError in sip recipe ignored: No module named fsspec-0
WARNING: ImportError in sip recipe ignored: No module named pyerfa-1
WARNING: ImportError in sip recipe ignored: No module named singledispatch-0
*** using recipe: sip *** {'resources': ['/Users/keshavshankar/Desktop/IEEE Citation Creator/.eggs/py2app-0.27-py3.8.egg/py2app/recipes/qt.conf']}
--- Skipping recipe PIL ---
*** using recipe: autopackages *** {'packages': ['docutils', 'pylint', 'h5py', 'numpy', 'scipy', 'tensorflow']}
-:142: SyntaxWarning: "is" with a literal. Did you mean "=="?
-:144: SyntaxWarning: "is" with a literal. Did you mean "=="?
-:146: SyntaxWarning: "is" with a literal. Did you mean "=="?
/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/keras/benchmarks/benchmark_util.py:142: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if 'x' is None:
/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/keras/benchmarks/benchmark_util.py:144: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if 'optimizer' is None:
/opt/anaconda3/lib/python3.8/site-packages/tensorflow/python/keras/benchmarks/benchmark_util.py:146: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if 'loss' is None:
--- Skipping recipe PIL ---
--- Skipping recipe gcloud ---
*** using recipe: lxml *** {}
--- Skipping recipe PIL ---
--- Skipping recipe gcloud ---
*** using recipe: matplotlib *** {'resources': ['/opt/anaconda3/lib/python3.8/site-packages/matplotlib/mpl-data'], 'packages': ['matplotlib']}
--- Skipping recipe PIL ---
--- Skipping recipe gcloud ---
*** using recipe: opencv *** {'includes': ['numpy']}
--- Skipping recipe PIL ---
--- Skipping recipe gcloud ---
*** using recipe: pandas *** {'includes': ['pandas._libs.tslibs.base']}
--- Skipping recipe PIL ---
--- Skipping recipe gcloud ---
--- Skipping recipe platformdirs ---
--- Skipping recipe pydantic ---
--- Skipping recipe pyenchant ---
--- Skipping recipe pygame ---
--- Skipping recipe pylsp ---
--- Skipping recipe pyopengl ---
--- Skipping recipe pyside ---
--- Skipping recipe pyside2 ---
--- Skipping recipe pyside6 ---
--- Skipping recipe qt5 ---
--- Skipping recipe qt6 ---
error: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib'

The error error: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib' was caused by py2app trying to build the program bundle using a non-existent interpreter.错误error: [Errno 2] No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib'是由 py2app 尝试使用不存在的解释器构建程序包引起的. This means that even if you try to uninstall a manager like Anaconda, it still has option logs somewhere on your mac.这意味着即使您尝试卸载像 Anaconda 这样的管理器,它仍然在您的 Mac 上的某处有选项日志。

The fix:修复:

  1. Open the terminal and type the command type -a python .打开终端并输入命令type -a python
  • You will see similar lines你会看到类似的线条
python is /opt/anaconda3/bin/python
python is /usr/local/bin/python
python is /usr/bin/python
  • In my case, anaconda has been deleted but not fully, thus building the app through it corrupts the process.就我而言,anaconda 已被删除但未完全删除,因此通过它构建应用程序会破坏该过程。 We want to delete anaconda fully我们要完全删除 anaconda
  1. To delete this, open the location of anaconda by typing open /opt/ in the terminal要删除它,请在终端中键入open /opt/ anaconda 的位置
  • Doing this will display the different environments on your computer.这样做将在您的计算机上显示不同的环境。 Delete the entire folder of the environment you don't want删除不需要的环境的整个文件夹
  1. Now retype type -a python in the terminal and you should see the anaconda path gone现在在终端中重新输入type -a python ,你应该会看到 anaconda 路径消失了
  • After this, simply rebuild your app in alias mode to make sure it works, then progress with the full build.在此之后,只需以别名模式重新构建您的应用程序以确保其正常工作,然后继续进行完整构建。

I'm using Mac OS Big Sur, and I had a similar issue as you describe, except that the error said:我正在使用 Mac OS Big Sur,我遇到了与您描述的类似的问题,除了错误说:

No such file or directory: /Users/[me]/opt/anaconda3/bin/python

I tried your solution, with no avail:我尝试了您的解决方案,但无济于事:

  • I had only one result with type -a python我只有一个type -a python
  • It was not related to Anaconda.它与 Anaconda 无关。

In the end, I could solve my problem by installing ipython:最后,我可以通过安装 ipython 来解决我的问题:

brew install ipython

The installation itself was not automatic.安装本身不是自动的。 It requested me to delete plenty of files in different protected locations, which I did.它要求我删除不同受保护位置的大量文件,我做到了。 Then I had to uninstall jupyter .然后我不得不卸载jupyter Finally, I could install ipyhton , then jupyterlab , and the anaconda problem was no more.最后,我可以安装ipyhton ,然后安装jupyterlab ,anaconda 问题就没有了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Pytorch: ValueError: 太多维度: 3 &gt; 2. 9/opt/anaconda3/envs/pytorch/lib/python3.7/site-packages/PIL/Image.py in fromarray(obj, mode) - Pytorch: ValueError: Too many dimensions: 3 > 2. 9/opt/anaconda3/envs/pytorch/lib/python3.7/site-packages/PIL/Image.py in fromarray(obj, mode) ImportError:无法从“六”(/usr/lib/python3.8/site-packages/six.py)导入名称“ensure_str” - ImportError: cannot import name 'ensure_str' from 'six' (/usr/lib/python3.8/site-packages/six.py) 导入错误:无法从 'dump' 导入名称 'dump' (~/.local/lib/python3.8/site-packages/dump/__init__.py) - importerror: cannot import name 'dump' from 'dump' (~/.local/lib/python3.8/site-packages/dump/__init__.py) SyntaxError:lib/python3.8/site-packages/sql_server/pyodbc/base.py django deploy on Linux 上的语法无效 - SyntaxError: invalid syntax on lib/python3.8/site-packages/sql_server/pyodbc/base.py django deploy on Linux 原始错误是:dlopen(/Users/ulto4/miniforge3/envs/python386/lib/python3.8/site-packages/numpy/core/_multiarray_umath.cpython-38-darwin.so, 2): - Original error was: dlopen(/Users/ulto4/miniforge3/envs/python386/lib/python3.8/site-packages/numpy/core/_multiarray_umath.cpython-38-darwin.so, 2): 运行“python -m ensurepip --default-pip”但提示我“要求已经满足:/usr/local/lib/python3.8/site-packages (19.2.3) 中的 pip” - run “python -m ensurepip --default-pip” but prompt me “Requirement already satisfied: pip in /usr/local/lib/python3.8/site-packages (19.2.3)” ImportError:无法从“keras.layers”(/home/mona/venv/fall/lib/python3.8/site-packages/keras/layers/__init__.py)导入名称“Deconvolution3D” - ImportError: cannot import name 'Deconvolution3D' from 'keras.layers' (/home/mona/venv/fall/lib/python3.8/site-packages/keras/layers/__init__.py) 如何将“ C:\\ Users \\ Myname \\ Anaconda3 \\ envs \\ pytorch \\ lib \\ site-packages”之类的路径永久添加到sys.path? - How to add a path like “C:\Users\Myname\Anaconda3\envs\pytorch\lib\site-packages” to sys.path permanently? C:\\ ProgramData \\ Anaconda3 \\ lib \\ site-packages \\ ipykernel_launcher.py:8:RuntimeWarning:日志中遇到无效值 - C:\ProgramData\Anaconda3\lib\site-packages\ipykernel_launcher.py:8: RuntimeWarning: invalid value encountered in log 导入错误:无法从 &#39;pandas.util._decorators&#39; (C:\\ProgramData\\Anaconda3\\lib\\site-packages\\pandas\\util\\_decorators.py) 导入名称 &#39;doc&#39; - ImportError: cannot import name 'doc' from 'pandas.util._decorators' (C:\ProgramData\Anaconda3\lib\site-packages\pandas\util\_decorators.py)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM