Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the project on Windows using WSL #6

Open
azhikai opened this issue Mar 20, 2019 · 1 comment
Open

Running the project on Windows using WSL #6

azhikai opened this issue Mar 20, 2019 · 1 comment

Comments

@azhikai
Copy link
Contributor

azhikai commented Mar 20, 2019

This setup is written on Windows 10 v.1803 (run winver to check)

  1. Search and run Turn windows feature on or off and enable Windows Subsystem for Linux
  2. Restart your computer when prompted.
  3. Go to Microsoft Store and search for Ubuntu and install it. Once installation is done, you must initialize it for the first time. Refer to https://docs.microsoft.com/en-us/windows/wsl/initialize-distro on how to initialize your distro.
  4. Install Anaconda using Ubuntu terminal. Search Ubuntu and run it -- a terminal will open.
  5. Follow the steps at https://gist.github.com/kauffmanes/5e74916617f9993bc3479f401dfec7da but at step 4 of the guide, replace the URL with Anaconda2-2018.12-Linux-x86_64.sh
  6. To check if your installation is correct, type python --version and conda -V. If you see the following, you're ready to set up a virtual environment:
    image
  7. Otherwise, modify ~/.bashrc by typing vim ~/.bashrc, press i to toggle to INSERT mode, add the following lines (replace the username), press ESC and enter :wq to write and quit the editor. Restart the terminal and try step 6 again and make sure it matches the image. [Disclaimer]: You could try just adding the export PATH=.... line and ignoring the . /home/... and it would still work, but the next time you launch your terminal, it'd throw an error asking you to remove it
    image
  8. Create a new python virtual environment by entering conda create -n cs3243 python=2.7 and proceed with the installation. You can choose not to install VS Code. To check your list of environments, type conda info --envs. It should have base and cs3243 now. To activate the new environment, enter conda activate cs3243. To deactivate it, enter conda deactivate.
    image
  9. Once you activated the environment, run pip install PyPokerEngine. To test if everything works, navigate to your project file and run python testing.py.
@azhikai azhikai pinned this issue Mar 20, 2019
@zulq9
Copy link

zulq9 commented Mar 20, 2019

Thank you very much! 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants