I had high hopes for pipenv when I first encountered it, thinking it would be the Python equivalent of node's NPM. Unfortunately, it's not. Among other limitations, it is very picky about which version of Python it is expecting. It's more like a lock and key. If you have a key with the exact specifications it is expecting, it will let you in and create a virtual environment. Otherwise, it complains.
Your choices: 1. Edit the Pipfile so it expects python instead of 3.5, delete the file Pipfile.lock, then try again. 2. Do a global install, much like we do with Python 2.x. Instructions are in the setup.py guide in the development branch. I've also pasted it below. sudo apt-get install python3-pil sudo apt-get install python3-configobj # As of this writing, Cheetah 3 can only be installed using pip:sudo apt-get install python3-pip sudo apt-get install python3-dev sudo pip3 install cheetah3 # Required if hardware is serial or USB, respectively:sudo apt-get install python3-serial sudo apt-get install python3-usb # Required if using MySQL:sudo apt-get install mysql-client sudo apt-get install python3-mysqldb # Optional for extended almanac information:sudo pip3 install pyephem On Sun, Mar 24, 2019 at 3:48 PM <[email protected]> wrote: > On Sunday, 24 March 2019 19:28:08 UTC-3, Tom Keffer wrote: >> >> It was merged into the development branch about 2 weeks ago. >> I'd be very interested in your experience. >> > > Tom, I need some advice. Below are the steps I took: > > root@pi36:~# cd git/weewx > root@pi36:~/git/weewx# git checkout development > Branch development set up to track remote branch development from origin. > Switched to a new branch 'development' > root@pi36:~/git/weewx# cd util/pipenv > root@pi36:~/git/weewx/util/pipenv# pipenv install > Warning: Python 3.6 was not found on your system... > You can specify specific versions of Python with: > $ pipenv --python path/to/python > root@pi36:~/git/weewx/util/pipenv# *pipenv --python /usr/bin/python3.5* > Creating a virtualenv for this project... > Pipfile: /root/git/weewx/util/pipenv/Pipfile > Using /usr/bin/python3.5 (3.5.3) to create virtualenv... > ⠼ Creating virtual environment...Using base prefix '/usr' > New python executable in > /root/.local/share/virtualenvs/pipenv-bAGe6VZr/bin/python3.5 > Also creating executable in > /root/.local/share/virtualenvs/pipenv-bAGe6VZr/bin/python > Installing setuptools, pip, wheel... > done. > Running virtualenv with interpreter /usr/bin/python3.5 > ✔ Successfully created virtual environment! > Virtualenv location: /root/.local/share/virtualenvs/pipenv-bAGe6VZr > Warning: Your Pipfile requires python_version 3.6, but you are using 3.5.3 > (/root/.local/share/v/p/bin/python). > $ pipenv --rm and rebuilding the virtual environment may resolve the > issue. > $ pipenv check will surely fail. > root@pi36:~/git/weewx/util/pipenv# > > How do I rebuild the virtual environment? > > Luc >
