wmg166 发表于 2023-12-27 16:20 (base) [wmg@localhost ~]$ pip list |grep "fonttools" DEPRECATION: Loading egg at /home/wmg/anaconda3/lib/python3.11/site-packages/phonopy-1.11.2-py3.11-linux-x86_64.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. fonttools 4.25.0 |
Loading0760 发表于 2023-12-27 10:22 大神,我是菜鸟 没搞定 (base) [wmg@localhost Pt4Ti03]$ pip install fonttools 4.22.0 DEPRECATION: Loading egg at /home/wmg/anaconda3/lib/python3.11/site-packages/phonopy-1.11.2-py3.11-linux-x86_64.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Requirement already satisfied: fonttools in /home/wmg/anaconda3/lib/python3.11/site-packages (4.25.0) ERROR: Could not find a version that satisfies the requirement 4.22.0 (from versions: none) ERROR: No matching distribution found for 4.22.0 (base) [wmg@localhost Pt4Ti03]$ (base) [wmg@localhost Pt4Ti03]$ pip install fonttools 4.25.0 DEPRECATION: Loading egg at /home/wmg/anaconda3/lib/python3.11/site-packages/phonopy-1.11.2-py3.11-linux-x86_64.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Requirement already satisfied: fonttools in /home/wmg/anaconda3/lib/python3.11/site-packages (4.25.0) ERROR: Could not find a version that satisfies the requirement 4.25.0 (from versions: none) ERROR: No matching distribution found for 4.25.0 (base) [wmg@localhost Pt4Ti03]$ phonopy -d --dim="2 2 2" -c POSCAR-UNITCELL -bash: /home/wmg/anaconda3/bin/phonopy: No such file or directory (base) [wmg@localhost Pt4Ti03]$ |
首先是第一个警告。
你可以使用
其次是第二个问题。
|
Loading0760 发表于 2023-12-26 19:44 用 phonopy 计算声子谱 ,出现这样的提示 咋解决 大神 (base) [wmg@localhost Pt4Ti03]$ phonopy -d --dim="222" -c POSCAR-UNTICELL /home/wmg/anaconda3/bin/phonopy:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html __import__('pkg_resources').run_script('phonopy==1.11.2', 'phonopy') Traceback (most recent call last): File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 631, in _build_master ws.require(__requires__) File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 968, in require needed = self.resolve(parse_requirements(requirements)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 829, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 875, in _resolve_dist raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.VersionConflict: (phonopy 2.20.0 (/home/wmg/anaconda3/lib/python3.11/site-packages/phonopy-2.20.0-py3.11-linux-x86_64.egg), Requirement.parse('phonopy==1.11.2')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/wmg/anaconda3/bin/phonopy", line 4, in <module> __import__('pkg_resources').run_script('phonopy==1.11.2', 'phonopy') ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3327, in <module> @_call_aside ^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3302, in _call_aside f(*args, **kwargs) File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3340, in _initialize_master_working_set working_set = WorkingSet._build_master() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 633, in _build_master return cls._build_from_requirements(__requires__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 646, in _build_from_requirements dists = ws.resolve(reqs, Environment()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 829, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 870, in _resolve_dist raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'fonttools>=4.22.0' distribution was not found and is required by matplotlib (base) [wmg@localhost Pt4Ti03]$ phonopy -d --dim="2 2 2" -c POSCAR-UNITCELL /home/wmg/anaconda3/bin/phonopy:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html __import__('pkg_resources').run_script('phonopy==1.11.2', 'phonopy') Traceback (most recent call last): File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 631, in _build_master ws.require(__requires__) File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 968, in require needed = self.resolve(parse_requirements(requirements)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 829, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 875, in _resolve_dist raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.VersionConflict: (phonopy 2.20.0 (/home/wmg/anaconda3/lib/python3.11/site-packages/phonopy-2.20.0-py3.11-linux-x86_64.egg), Requirement.parse('phonopy==1.11.2')) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/wmg/anaconda3/bin/phonopy", line 4, in <module> __import__('pkg_resources').run_script('phonopy==1.11.2', 'phonopy') ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3327, in <module> @_call_aside ^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3302, in _call_aside f(*args, **kwargs) File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3340, in _initialize_master_working_set working_set = WorkingSet._build_master() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 633, in _build_master return cls._build_from_requirements(__requires__) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 646, in _build_from_requirements dists = ws.resolve(reqs, Environment()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 829, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/home/wmg/anaconda3/lib/python3.11/site-packages/pkg_resources/__init__.py", line 870, in _resolve_dist raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'fonttools>=4.22.0' distribution was not found and is required by matplotlib |
是的,这样就显示安装成功了。 你上面的“付付付付”有点意思,感觉是不是中文编码错误。 |
手机版 Mobile version|北京科音自然科学研究中心 Beijing Kein Research Center for Natural Sciences|京公网安备 11010502035419号|计算化学公社 — 北京科音旗下高水平计算化学交流论坛 ( 京ICP备14038949号-1 )|网站地图
GMT+8, 2024-11-27 19:51 , Processed in 0.511916 second(s), 26 queries , Gzip On.