Tuchuanhuhuhu commited on
Commit
3fc0707
·
1 Parent(s): 6213fb0

增加找不到tiktoken的疑难解答

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -371,6 +371,22 @@ DOMAIN-SUFFIX,openai.com,你的代理规则
371
 
372
  </details>
373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  <details><summary><code>TypeError: Base.set () got an unexpected keyword argument</code></summary>
375
 
376
  这是因为川虎ChatGPT紧跟Gradio发展步伐,你的Gradio版本太旧了。请升级依赖:
 
371
 
372
  </details>
373
 
374
+ <details><summary>找不要依赖项(No matching distribution found for tiktoken)</summary>
375
+
376
+ 这种情况是因为你使用的`pip`源中没有这个包。pypi的镜像源(比如清华源)的更新可能没有官方源那么及时。如果遇到了这种情况,建议换用pypi的官方源:
377
+
378
+ 临时换用官方源:
379
+ ```
380
+ pip install tiktoken -i https://pypi.org/simple
381
+ ```
382
+
383
+ 或者永久替换为官方源:
384
+ ```
385
+ pip config set global.index-url https://pypi.org/simple
386
+ ```
387
+
388
+ </details>
389
+
390
  <details><summary><code>TypeError: Base.set () got an unexpected keyword argument</code></summary>
391
 
392
  这是因为川虎ChatGPT紧跟Gradio发展步伐,你的Gradio版本太旧了。请升级依赖: