按照官网上的流程安装spider,并安装了需要的的库,安装过程最后显示安装成功,但是运行pyspider仍然显示"pyspider: command not found“
我是mac系统,配置环境变量
找到spider安装路径

vim ~/.bash_profile export
添加配置
export PATH="/Users/simonxxx/Library/Python/3.8/lib/python/site-packages"
:wq
如果还未生效,试一下
source ~/.bash_profile
本文讲述了作者在Mac系统中按照官方教程安装spider,安装库后显示成功,但运行pyspider时遇到commandnotfound错误。作者提供了配置环境变量(包括添加到.bash_profile)以及可能的解决方案。
1911

被折叠的 条评论
为什么被折叠?



