解决pip install rasa==3.0.8无动于衷的问题

我的安装环境是win10,minconda,Python3.8.12
在conda中创建了一个名为rasa_3.0的环境【命令:conda create -n rasa_3.0 python==3.8.12】当我使用pip install rasa==3.0.8的时候,刚开始速度还挺快,后面就卡在那里一动不动,以为是网络和本地pip依赖的问题,就索性让他一直在那安装,等到第二天早上还是泪崩了,因为一直没成功,陷入了无限循环,如下面的一段code。

INFO: pip is looking at multiple versions of ruamel-yaml to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of rsa to determine which version is compatible with other requirements. This could take a while.
Collecting rsa<5,>=3.1.4
  Downloading http://mirrors.aliyun.com/pypi/packages/e9/93/0c0f002031f18b53af7a6166103c02b9c0667be528944137cc954ec921b3/rsa-4.7.2-py3-none-any.whl (34 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Downloading http://mirrors.aliyun.com/pypi/packages/a0/c6/f6f92e055213860a39c98e51a10a51af473bc799a889fe8edac11108245b/rsa-4.7.1-py3-none-any.whl (36 kB)
ERROR: Operation cancelled by user
Traceback (most recent call last):
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\contextlib.py", line 510, in __exit__
    if cb(*exc_details):
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\site-packages\pip\_internal\utils\temp_dir.py", line 165, in __exit__
    self.cleanup()
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\site-packages\pip\_internal\utils\temp_dir.py", line 184, in cleanup
    rmtree(self._path)
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 326, in wrapped_f
    return self(f, *args, **kw)
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 406, in __call__
    do = self.iter(retry_state=retry_state)
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 351, in iter
    return fut.result()
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\concurrent\futures\_base.py", line 437, in result
    return self.__get_result()
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\concurrent\futures\_base.py", line 389, in __get_result
    raise self._exception
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\site-packages\pip\_vendor\tenacity\__init__.py", line 409, in __call__
    result = fn(*args, **kwargs)
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\site-packages\pip\_internal\utils\misc.py", line 135, in rmtree
    shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\shutil.py", line 733, in rmtree
    if _rmtree_islink(path):
  File "D:\98ProgramFiles\Miniconda3\envs\rasa_3.0\lib\shutil.py", line 577, in _rmtree_islink
    st = os.lstat(path)
KeyboardInterrupt

于是google搜索了一番,发现可以解决问题,记录一下下。
网上有说,如果安装过tensorflow,要卸载掉tensorflow,但我的环境没有。
我使用了下面的命令安装,一下下就好了。欣喜若狂
pip3 install -U --user pip && pip3 install rasa -i https://pypi.org/simple
这个命令如果没有科学上网,要多试几遍,毕竟链接外网。我在服务器上就是试了多几遍才成功的。
屏幕出现了如下的信息,代表大功告成。

Successfully built mattermostwrapper pyTelegramBotAPI randomname twilio clang docopt termcolor wrapt fire future
Installing collected packages: wrapt, wcwidth, typing-extensions, termcolor, tensorflow-estimator, tensorboard-plugin-wit, tabulate, sanic-routing, regex, pytz, python-crfsuite, pyreadline3, pyasn1, pamqp, msgpack, keras, kafka-python, flatbuffers, docopt, clang, chardet, zipp, werkzeug, websockets, urllib3, ujson, tzlocal, typing-utils, typeguard, toolz, threadpoolctl, terminaltables, tensorboard-data-server, tarsafe, six, ruamel.yaml.clib, rsa, redis, pyyaml, python-engineio, pyrsistent, pyparsing, pymongo, PyJWT, pycparser, pyasn1-modules, psycopg2-binary, protobuf, pillow, oauthlib, numpy, networkx, multidict, locket, kiwisolver, jsonpickle, joblib, jmespath, idna, humanfriendly, httptools, greenlet, gast, future, fsspec, dnspython, decorator, cycler, colorhash, colorclass, colorama, cloudpickle, charset-normalizer, cachetools, bidict, attrs, async-timeout, async_generator, aiofiles, yarl, tqdm, tensorflow_hub, tensorflow-addons, SQLAlchemy, sentry-sdk, scipy, sanic-jwt, sanic, ruamel.yaml, requests, python-socketio, python-dateutil, pydot, prompt-toolkit, partd, packaging, opt-einsum, keras-preprocessing, jsonschema, importlib-metadata, h5py, grpcio, google-pasta, google-auth, fire, dm-tree, coloredlogs, cffi, astunparse, apscheduler, absl-py, twilio, tensorflow-probability, sklearn-crfsuite, scikit-learn, sanic-plugin-toolkit, rocketchat_API, requests-toolbelt, requests-oauthlib, randomname, questionary, pyTelegramBotAPI, pykwalify, mattermostwrapper, matplotlib, markdown, fbmessenger, dask, cryptography, CacheControl, botocore, aiormq, aiohttp, webexteamssdk, slackclient, sanic-cors, s3transfer, google-auth-oauthlib, aio-pika, tensorboard, rasa-sdk, boto3, tensorflow, rasa
Successfully installed CacheControl-0.12.10 PyJWT-2.1.0 SQLAlchemy-1.4.32 absl-py-0.13.0 aio-pika-6.8.2 aiofiles-0.8.0 aiohttp-3.7.4 aiormq-3.3.1 apscheduler-3.7.0 astunparse-1.6.3 async-timeout-3.0.1 async_generator-1.10 attrs-21.2.0 bidict-0.21.4 boto3-1.21.16 botocore-1.24.17 cachetools-5.0.0 cffi-1.15.0 chardet-3.0.4 charset-normalizer-2.0.12 clang-5.0 cloudpickle-1.6.0 colorama-0.4.4 colorclass-2.2.2 coloredlogs-15.0.1 colorhash-1.0.4 cryptography-3.4.8 cycler-0.11.0 dask-2021.11.2 decorator-5.1.1 dm-tree-0.1.6 dnspython-1.16.0 docopt-0.6.2 fbmessenger-6.0.0 fire-0.4.0 flatbuffers-1.12 fsspec-2022.2.0 future-0.18.2 gast-0.4.0 google-auth-2.6.0 google-auth-oauthlib-0.4.6 google-pasta-0.2.0 greenlet-1.1.2 grpcio-1.44.0 h5py-3.1.0 httptools-0.4.0 humanfriendly-10.0 idna-3.3 importlib-metadata-4.11.2 jmespath-0.10.0 joblib-1.0.1 jsonpickle-2.0.0 jsonschema-3.2.0 kafka-python-2.0.2 keras-2.6.0 keras-preprocessing-1.1.2 kiwisolver-1.3.2 locket-0.2.1 markdown-3.3.6 matplotlib-3.3.4 mattermostwrapper-2.2 msgpack-1.0.3 multidict-5.2.0 networkx-2.6.3 numpy-1.19.5 oauthlib-3.2.0 opt-einsum-3.3.0 packaging-20.9 pamqp-2.3.0 partd-1.2.0 pillow-9.0.1 prompt-toolkit-2.0.10 protobuf-3.19.4 psycopg2-binary-2.9.3 pyTelegramBotAPI-3.8.3 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.21 pydot-1.4.2 pykwalify-1.8.0 pymongo-3.10.1 pyparsing-3.0.7 pyreadline3-3.4.1 pyrsistent-0.18.1 python-crfsuite-0.9.7 python-dateutil-2.8.2 python-engineio-4.3.1 python-socketio-5.5.2 pytz-2021.3 pyyaml-6.0 questionary-1.10.0 randomname-0.1.5 rasa-3.0.8 rasa-sdk-3.0.4 redis-3.5.3 regex-2021.8.28 requests-2.27.1 requests-oauthlib-1.3.1 requests-toolbelt-0.9.1 rocketchat_API-1.16.0 rsa-4.8 ruamel.yaml-0.16.13 ruamel.yaml.clib-0.2.6 s3transfer-0.5.2 sanic-21.9.3 sanic-cors-1.0.1 sanic-jwt-1.7.0 sanic-plugin-toolkit-1.2.1 sanic-routing-0.7.2 scikit-learn-0.24.2 scipy-1.8.0 sentry-sdk-1.3.1 six-1.15.0 sklearn-crfsuite-0.3.6 slackclient-2.9.3 tabulate-0.8.9 tarsafe-0.0.3 tensorboard-2.8.0 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 tensorflow-2.6.1 tensorflow-addons-0.14.0 tensorflow-estimator-2.6.0 tensorflow-probability-0.13.0 tensorflow_hub-0.12.0 termcolor-1.1.0 terminaltables-3.1.10 threadpoolctl-3.1.0 toolz-0.11.2 tqdm-4.63.0 twilio-6.50.1 typeguard-2.13.3 typing-extensions-3.7.4.3 typing-utils-0.1.0 tzlocal-2.1 ujson-4.3.0 urllib3-1.26.8 wcwidth-0.2.5 webexteamssdk-1.6 websockets-10.2 werkzeug-2.0.3 wrapt-1.12.1 yarl-1.7.2 zipp-3.7.0

纯属记录篇,因为rasa变化还是挺快的,当前时间又是安装最新的版本,难免踩坑掉坑爬坑。

猜你喜欢

转载自blog.csdn.net/diaozhida/article/details/123423717