Superbird11 / ranges

Continuous Range, RangeSet, and RangeDict data structures for Python
MIT License
101 stars 10 forks source link

Hyphen in title causing syntax error #22

Open Dentarthurdent42 opened 1 year ago

Dentarthurdent42 commented 1 year ago

I'm just trying to import it after installing it with pip install python-ranges. I tried import ranges and it couldn't find it, so I tried import python-ranges, and it pointed to the hyphen as the cause of the SyntaxError. I also wasn't sure why I'd be importing it as ranges if I installed it as python-ranges, so maybe I'm missing something obvious.

PS: This is my first time posting an issue, so if I'm just being dumb, just let me down easy.

Superbird11 commented 1 year ago

It's called python-ranges because ranges was already taken on pypi when I released the module. However, as long as it's installed, import ranges should work unless you have a different module called ranges installed.

Are you sure that the python you're using corresponds to the pip you used to install it? (e.g. using pip3 to install it, but actually opening python2 instead of python3?) Or perhaps you did pip install python-ranges globally, but are using an IDE to run your code and it's actually running inside of a virtual environment (which might have its own version of the python3 executable, and thus its own set of installs, so python-ranges and any other downloadable libraries might have to be redownloaded inside it)?

Dentarthurdent42 commented 1 year ago

Honestly, I’m not sure what’s going on with my Python installation(s). When I was just starting out, I followed the directions on Codecademy, and it’s been like 50/50 whether or not a package installs to the right one, and I don’t know which one to use. This stuff gets overwhelming at times.

On Fri, Nov 4, 2022 at 11:25 PM Louis Jacobowitz @.***> wrote:

It's called python-ranges because ranges was already taken on pypi when I released the module. However, as long as it's installed, import ranges should work unless you have a different module called ranges installed.

Are you sure that the python you're using corresponds to the pip you used to install it? (e.g. using pip3 to install it, but actually opening python2 instead of python3?) Or perhaps you did pip install python-ranges globally, but are using an IDE to run your code and it's actually running inside of a virtual environment (which might have its own version of the python3 executable, and thus its own set of installs, so python-ranges and any other downloadable libraries might have to be redownloaded inside it)?

— Reply to this email directly, view it on GitHub https://github.com/Superbird11/ranges/issues/22#issuecomment-1304390366, or unsubscribe https://github.com/notifications/unsubscribe-auth/APE4BY4QAVIRX52OE33HQGLWGXHTDANCNFSM6AAAAAARXW7OJI . You are receiving this because you authored the thread.Message ID: @.***>