nitrictech / python-sdk

Python SDK for Nitric
https://nitric.io
Apache License 2.0
17 stars 4 forks source link

Can't install nitric in conda environment #138

Open cekcreator opened 5 months ago

cekcreator commented 5 months ago

Bug Report

The bug is related to installing the nitric python CLI in a conda environment as well as outside one

Issue

Install try 1: I use conda as my env manager and I created a conda env with python 3.11 and ran

conda install nitric - did not find it but that could be because it is not on conda yet pip install nitric- worked nitric new hello-world py-starter - zsh could not find nitric

So I then restarted my shell and tried without a conda env. Outside of the conda env python version is 3.10. Ran these commands: pip install nitric - worked nitric new hello-world py-starter - zsh could not find nitric

Checked my .zshrc and .bashrc (just in case) and could not find nitric in either, also ran: pip index versions nitric

output is below:

nitric (0.12.0)
Available versions: 0.12.0, 0.11.0, 0.10.0, 0.9.2, 0.9.1, 0.8.2, 0.8.1, 0.8.0, 0.7.0, 0.6.0, 0.4.3, 0.4.2, 0.3.0, 0.2.1, 0.2.0, 0.1.1, 0.1.0
  INSTALLED: 0.12.0
  LATEST:    0.12.0

Environment and setup information

Running on m2 Mac python 3.10/11 IDE is pycharm

Other info

If I just need to use pipenv please let me know!

tjholm commented 5 months ago

@cekcreator thanks for raising this. The nitric CLI is a single binary distribution that we make available through a number of package managers and as a scripted install from our website, see: https://nitric.io/docs/reference/cli/installation, for macOS we offer install via brew and the scripted curl option should work as well. These install methods will also add the nitric CLI to your systems PATH, allowing you to run the commands you mentioned.

The nitric packaged you're installing above is our nitric language SDK for python: https://pypi.org/project/nitric/ this is just the interface for developing nitric applications with python and does not contain our CLI.

Let me know if that makes sense or if I have misunderstood the issue.