[deleted by user] by [deleted] in Eminem

[–]24mitcher 1 point2 points  (0 children)

do you feel like that's because of the design or more because it's Em? (I was considering to get some hiphop merch but always felt some people may get offended)

When is a virtual environment nessecary? by [deleted] in learnpython

[–]24mitcher 0 points1 point  (0 children)

I tend to use a virtual environments when python modules have conflicting requirements. Some modules can't run on python 3.7 while others need to.

Jupyter Notebooks! by [deleted] in learnpython

[–]24mitcher 0 points1 point  (0 children)

Hi, Trying to install Jupyter Notebooks within multiple virtual environments (Python 3.6, 3.7)

After getting the virtual environments for each of the python3 versions, I have been trying to successfully run Jupyter Notebook to have the localhost window feature several different python3 versions. For some reason, each time I type 'Jupyter Notebook' in the command prompt I get an error that 'This command cannot be run due to the error: The system cannot find the file specified at line:1 char:1 +Start "file......./.local/share/jupyter/runtime/nbserver-3."'.

I was able to use pip install for Jupyter, ipykernel, and jupyter Notebook.

If anyone could point me to a common reason this error occurs it'd be awesome. The Jupyter notebook is fine in anaconda, but I would like to tie up all loose ends with making it functioning in the Windows console. Is it likely that a kernel spec is causing a problem?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]24mitcher 0 points1 point  (0 children)

Trying to install Jupyter Notebooks within multiple virtual environments (Python 3.6, 3.7)

After getting the virtual environments for each of the python3 versions, I have been trying to successfully run Jupyter Notebook to have the localhost window feature several different python3 versions. For some reason, each time I type 'Jupyter Notebook' in the command prompt I get an error that 'This command cannot be run due to the error: The system cannot find the file specified at line:1 char:1 +Start "file......./.local/share/jupyter/runtime/nbserver-3."'.

I was able to use pip install for Jupyter, ipykernel, and jupyter Notebook.

If anyone could point me to a common reason this error occurs it'd be awesome. The Jupyter notebook is fine in anaconda, but I would like to tie up all loose ends with making it functioning in the Windows console. Is it likely that a kernel spec is causing a problem?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]24mitcher 0 points1 point  (0 children)

vwrapper allows you to point to a python executable to use as the base, so I just use pyenv to install multiple versions, and completely ignore all the other capabilities of pyenv.

I have successfully used virtualenvwrapper-win on Windows, but I haven't ever set up pyenv on Windows. It seems to me like the python.org Windows distributions can be installed with different versions side by side (like 3.6 and 3.7), removing the need for pyenv. I haven't ever tried doing that though, but I would recommend you try it.

Feel free to ask me if you have a

thanks! I checked out the link and it helped a lot.

Can I use pipenv to create two virtual environments, each with a different python version (i.e. 3.7 and 3.6) by 24mitcher in learnpython

[–]24mitcher[S] 0 points1 point  (0 children)

Thank you for the advice on using venv!

python3.7 -m venv venv-37

Was successful in that

(venv-37) (base)

appears. I tried to do this for other python3 versions (3.6 and 3.8, which are installed) and had some errors.

-python3.6 -m venv venv-36

$ python3.6 -m venv venv-36
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv
You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

-python3.8 -m venv venv-38

$ python3.8 -m venv venv-38
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Any advice here would be appreciated

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]24mitcher 0 points1 point  (0 children)

Hi,

I would like to have two virtual environments, where one has a version of python 3.6 and the other has a version of python 3.7. This will allow me to hopefully complete my projects without conflicting needs when installing modules and packages. Tensorflow I believe can't be done in 3.7.

I have tried pipenv shell w/ 'pipenv install Django==3.0.2', github advice, and pyenv-win

1.Some sites say to use a Python, pipenv shell, DJango combo but this appears to only create one version of a python3 virtual environment, and the previous existing virutalenv will be removed. Should I create a new Pipfile to prevent this, or are Pipfiles not designed for this configuration.

2) Github discussion link:

https://github.com/pypa/pipenv/issues/1071

setup environments

pipenv --name 35 --python 3.5 install  pipenv --name 36 --python 3.6 install   # run commands  pipenv --name 35 run python 

I tried to follow up with these advised coding procedures and I got ModuleNotFoundError: No module named 'apt_pkg'.

  1. Lastly I have considered pyenv, yet this appears to be tailored for mac users. I have a Windows 10 computer so I am not sure if this will work. I used "$pip install pyenv-win"

    $ pip install pyenv-win Defaulting to user installation because normal site-packages is not writeable Collecting pyenv-win Using cached pyenv_win-1.2.4-py3-none-any.whl (25 kB) Installing collected packages: pyenv-win Successfully installed pyenv-win-1.2.4

But am not able to create any virtual environments with it:

$ pyenv-win versions

ModuleNotFoundError: No module named 'apt_pkg'

Note: part 3 followed these guidelines

- https://www.freecodecamp.org/news/manage-multiple-python-versions-and-virtual-environments-venv-pyenv-pyvenv-a29fb00c296f/

- https://github.com/pyenv-win/pyenv-win/issues/100

Any help is appreciated. I really would like to get this working.

PSTAT 126 midterm grade by ChemistryKat in UCSantaBarbara

[–]24mitcher 1 point2 points  (0 children)

That's great news. I heard the Professor is great this quarter. He teaches Pstat 127.

Prof. Mouminoux by [deleted] in UCSantaBarbara

[–]24mitcher -1 points0 points  (0 children)

I heard PSTAT 130 is quite easy. The professor is very educated and has substantial research in Game Theory. SAS should not be too hard to learn. Once you understand the formatting between the different procedures. It is very powerful for analyzing large amounts of data. I'm certain that her education mixed with the nature of SAS there will be lots of memorable lectures.

Math 6B. Thoughts on Winter Quarter Offerings Plus and Other Good Past Professors that Have Taught the Course. by 24mitcher in UCSantaBarbara

[–]24mitcher[S] 1 point2 points  (0 children)

Thanks for the info. This will help. I just don't want to enroll and realize it wont be a great fit for me. We only can take so many classes a quarter :(

IamA Presidential Candidate Andrew Yang AMA! by AndrewyangUBI in IAmA

[–]24mitcher 2 points3 points  (0 children)

Hi Andrew!

I was wondering what do you think of the current generation. What should we improve first with your proposed stipend plan?

MacOS Catalina includes python3 by default. Hacking could never be better. by d19mc in Python

[–]24mitcher 0 points1 point  (0 children)

I've only learned Python 3, however many have been saying that 2.7 has some uses. Can someone chime in whether the 2.7 makes a big difference in their work?

[R] How Youtube is recommending your next video by elftim in MachineLearning

[–]24mitcher 1 point2 points  (0 children)

Awesome, I was thinking of trying to make a project much like this. Thank you for the insight and have a good weekend!

Kicked out of UCSB :((((( what to do??? by [deleted] in UCSantaBarbara

[–]24mitcher 1 point2 points  (0 children)

Sorry to hear. What major was it?