Reputation: 47
I installed the camelcase package in python using pip. But when I import camelcase and run the code, I see this error:
ModuleNotFoundError: No module named 'camelcase'
For the sake of providing more information, the file where I am writing the code is in a different location.
This is my code:
import camelcase
c = CamelCase()
txt = "hello world"
print(c.hump(txt))
Upvotes: 1
Views: 4198
Reputation: 885
The issue is with your import try the following:
from camelcase import CamelCase
c = CamelCase()
txt = "hello world"
print(c.hump(txt))
Output:
Hello World
Upvotes: 3