在运行/安装骆驼套时遇到问题

时间:2020-07-16 21:15:09

标签: python pip camelcasing

我正在尝试运行camelCase并按照我用于安装它的代码进行安装

   C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip install camelcase

这给了我

的结果
   C:\\Users\\Your Name\\AppData\\Local\\Programs\\Python\\Python36-32\\Scripts>pip install camelcase

这让我觉得它已经安装了,但是当我尝试使用import camelCase导入camelCase时 它给了我

的结果
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'camelcase'

(我有Python 3.8.3 BTW,所以它已经有了PIP)

1 个答案:

答案 0 :(得分:1)

使用小写字母导入camelcase软件包。例如:

from camelcase import CamelCase
c = CamelCase()
s = 'this is a sentence that needs camelcasing!'
print(c.hump(s))