Ness001

永不放弃的信念和孤注一掷的勇气


  • Home

  • About

  • Tags

  • Archives

generate requirement.txt for your python project生成

Posted on 2019-12-13

generate requirement.txt

  • for all packages in the env pip3 freeze > requirements.txt
  • for packages used in you project
    • pip3 install pipreqs
    • pipreqs

install

pip3 install -r requirements.txt

What’s the difference between pip and pip3?

What’s the difference between pip and pip3? Pip is for python version less than 3. and pip3 is used when you want to install packages for python version 3 or higher.

The text about is right in most of cases. The packages’ installation location is different for pip and pip3. But sometimes, the pip command in bash is a soft-link to pip3, if you want to check whether your env is this case, just use which pip and which pip3 command to see the unix executable.

腾讯云ubuntu启用root账户

Posted on 2019-12-13

腾讯云ubuntu启用root账户

腾讯云ubuntu的默认账户名为ubuntu

启用root步骤

  • sudo passwd root

  • sudo vi /etc/ssh/sshd_config

    • esc,在命令行模式下,输入 /PermitRootLogin,搜索定位到这一行,使用n可以切换到下一个

    • i,删除#,修改后面的 prohibit-password 为 yes

    • PermitRootLogin 参数

      指定 root 是否可以用 ssh 登录。参数值必须是“yes”、“prohibit-password”、“without-password”、“orced-commands-only”或者“no”。默认值是“prohibit-password”。

      如果这个选项设置为“prohibit-password”、“without-password”,通过密码和键盘交互的授权方式对 root 用户禁用。

      如果这个选项设置为“orced-commands-only”,root 用户只允许通过公钥授权登录,但只是指定了 conmmand选项的时候(这可能对远程备份是有好处的,即使 root 不允许登录)。其他授权方式对 root 无效。

      如果这个选项设置为“no”,root 不允许登录。

  • sudo service ssh restart (!!!)

  • 切换到root

    • su root

Apple Lines 苹果广告词摘录

Posted on 2019-12-07

愿苹果永不落幕。

Long Live with Apple.

Special Day

gift

Make someone’s holiday.

Best of 2019

你的心头所爱,我们甄选推荐。

Loved by you. Awarded bu us.

Product

Apple Watch

watch series5

全天候视网膜显示屏,全新登场。

这块表,好不一样。

AirPods

AirPods Pro

妙得不同凡响。

Magic like you’ve never heard.

iPhone

iPhone 11 Pro

Pro cameras. Pro display. Pro performance.

iPhone 11

Just the right amount of everything.

iPhone SE 2

Lots to Love, Less to Spend(我觉得用have会更好)

称心称手,超值入手。


iPhone SE packs our most powerful chip into our most popular size at our most affordable price. It’s just what you’ve been waiting for.

Survives splashes,
sloshes, sprinkles, sprays,
splatters, and spills.

Built for iOS 13. And beyond.

 tv+

Bring the big screen to your screen.

Software

macOS Catalina

Mac的本领,突飞猛进。

<12

13 posts
9 tags

Tag Cloud

  • MacOS1
  • apple1
  • cs61c tools1
  • ml1011
  • nvidia1
  • python2
  • sklearn1
  • switch1
  • ubuntu1
RSS
© 2022 Liang Li
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4