Closed PedroM1 closed 6 years ago
In the end I get a Pipfile with the following, but no pip.lock file wich I though was expected:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
scipy = "*"
scikit-learn = "*"
pandas = "*"
gunicorn = "*"
peewee = "*"
"psycopg2" = "*"
Flask = "*"
category_encoders = "==1.2.6"
[dev-packages]
[requires]
python_version = "3.6"
And the shell appears to run, maybe the apparently error messages are not relevant?
familia@familia-desktop:~/LDSSA/heroku-model-deploy$ ls
app.py LICENSE README.md
columns.json pipeline.pickle requirements.txt
Deserialize and use.ipynb Pipfile titanic.csv
dtypes.pickle Procfile Train and Serialize.ipynb
familia@familia-desktop:~/LDSSA/heroku-model-deploy$ pipenv shell
Launching subshell in virtual environment…
. /home/familia/.local/share/virtualenvs/heroku-model-deploy-D-SL1Mzz/bin/activate
familia@familia-desktop:~/LDSSA/heroku-model-deploy$ . /home/familia/.local/share/virtualenvs/heroku-model-deploy-D-SL1Mzz/bin/activate
(heroku-model-deploy-D-SL1Mzz) familia@familia-desktop:~/LDSSA/heroku-model-deploy$
Apparently does not seem to have at least pandas, or am I getting it wrong?
familia@familia-desktop:~/LDSSA/heroku-model-deploy$ pipenv shell
Launching subshell in virtual environment…
. /home/familia/.local/share/virtualenvs/heroku-model-deploy-D-SL1Mzz/bin/activate
familia@familia-desktop:~/LDSSA/heroku-model-deploy$ . /home/familia/.local/share/virtualenvs/heroku-model-deploy-D-SL1Mzz/bin/activate
(heroku-model-deploy-D-SL1Mzz) familia@familia-desktop:~/LDSSA/heroku-model-deploy$ python3
Python 3.6.6 (default, Jun 28 2018, 04:42:43)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pandas'
>>>
Resolved by creating a new folder to restart the process and installing one package at a time:
pipenv install scipy
...
And also correcting the spelling of category-encoders to category_encoders as suggested in Slack. :)
Hey I have python 3.6:
Calling pipenv on the requirements file I get this... any clue what is the problem? It also took many minutes to run. Computer details below. Thanks:
-Computer- Processor : 2x Pentium(R) Dual-Core CPU E5400 @ 2.70GHz Memory : 4043MB (2541MB used) Operating System : Ubuntu 16.04.5 LTS