I型
sudo pip install "line_profiler"
我得到了
Downloading/unpacking line-profiler
Could not find a version that satisfies the requirement line-profiler (from versions: 1.0b1, 1.0b2, 1.0b3)
Cleaning up...
No distributions matching the version for line-profiler
Storing debug log for failure in /home/milia/.pip/pip.log
当我使用
sudo pip search "line_profiler"
我得到:
django-debug-toolbar-line-profiler - A panel for django-debug-toolbar that integrates
information from line_profiler
line_profiler - Line-by-line profiler.
tracerbullet - A line-by-line profiler that doesn't suck.
不知怎么的,下划线变成了“-”。我怎么能绕过这个?
问题不在于
pip
将_
转换为-
以满足包命名要求,而是:包处于beta
状态,没有稳定的包版本。换句话说,只有package PyPI page上的beta
包版本链接可用。如您所见,pip
看到它:根据Pre-release Versions文档页面:
将^{} 参数传递给
pip install
:或者,安装特定版本:
我安装了miniconda并运行这些:
$ conda install -c anaconda line_profiler
相关问题 更多 >
编程相关推荐