kaiwk / leetcode.el

An Emacs LeetCode client.
GNU General Public License v3.0
396 stars 70 forks source link

leetcode not success #63

Closed sincebyte closed 3 years ago

sincebyte commented 3 years ago

use M-x leetcode , out put is blew, and nothing next . Defaulting to user installation because normal site-packages is not writeable Looking in indexes: https://mirrors.aliyun.com/pypi/simple Requirement already satisfied: my_cookies in ./.local/lib/python3.6/site-packages (0.1.1) Requirement already satisfied: browser-cookie3 in ./.local/lib/python3.6/site-packages (from my_cookies) (0.11.1) Requirement already satisfied: lz4 in ./.local/lib/python3.6/site-packages (from browser-cookie3->my_cookies) (3.1.0) Requirement already satisfied: pyaes in ./.local/lib/python3.6/site-packages (from browser-cookie3->my_cookies) (1.6.1) Requirement already satisfied: pbkdf2 in ./.local/lib/python3.6/site-packages (from browser-cookie3->my_cookies) (1.3) Requirement already satisfied: keyring in /usr/lib/python3/dist-packages (from browser-cookie3->my_cookies) (10.6.0) Requirement already satisfied: pycryptodome in ./.local/lib/python3.6/site-packages (from browser-cookie3->my_cookies) (3.9.8) Requirement already satisfied: secretstorage in /usr/lib/python3/dist-packages (from keyring->browser-cookie3->my_cookies) (2.3.1)

kaiwk commented 3 years ago

you are using system-provided python, try sudo pip3 install my_cookies in your terminal, then it should be ok.

sincebyte commented 3 years ago

on terminal emacs -nw it will be ok, but use gui emacs ,the out put is same .

kaiwk commented 3 years ago

emacs -nw works since it inherit exec-path from bash environment. To add bash environment manually in Emacs GUI, C-h v check exec-path value, and add the path to my_cookies.

Or you can use exec-path-from-shell to add system PATH variables into Emacs.

sincebyte commented 3 years ago

(add-to-list 'exec-path "~/.local/lib/python3.6/site-packages/my_cookies/my_cookies.py") this do not work ,please help

kaiwk commented 3 years ago

e.g. which grep gives /usr/bin/grep, you should add /usr/bin/ to exec-path.

try which my_cookies, and do the same above.

sincebyte commented 3 years ago

it works

oLd-Y commented 7 months ago

it works

Hey, @sincebyte, are you still there? I'm having the same problem as you, but I'm using windows 11 and have no idea what' wrong. Which path did you end up taking to solve the problem, can you give me a reference?